extract AutoScroll actions for RIDER

GitOrigin-RevId: f8922d269a4814b3bd18b7673178ef4d249dc0bf
This commit is contained in:
Sergey Malenkov
2019-07-08 15:02:16 +03:00
committed by intellij-monorepo-bot
parent 45620d2a86
commit ba328fd25a
@@ -712,8 +712,8 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
})
.setAsSecondary(true);
}
myActionGroup.addAction(myAutoScrollToSourceHandler.createToggleAction()).setAsSecondary(true);
myActionGroup.addAction(myAutoScrollFromSourceHandler.createToggleAction()).setAsSecondary(true);
myActionGroup.addAction(getAutoScrollToSourceAction()).setAsSecondary(true);
myActionGroup.addAction(getAutoScrollFromSourceAction()).setAsSecondary(true);
myActionGroup.addAction(new ManualOrderAction()).setAsSecondary(true);
myActionGroup.addAction(new SortByTypeAction()).setAsSecondary(true);
myActionGroup.addAction(new FoldersAlwaysOnTopAction()).setAsSecondary(true);
@@ -2207,4 +2207,14 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
}
return pane != null ? pane.getReady(requestor) : ActionCallback.DONE;
}
@NotNull
public ToggleAction getAutoScrollToSourceAction() {
return myAutoScrollToSourceHandler.createToggleAction();
}
@NotNull
public ToggleAction getAutoScrollFromSourceAction() {
return myAutoScrollFromSourceHandler.createToggleAction();
}
}