RUBY-10141 don't show the useless "scroll from source" icon when "autoscroll from source" is active

This commit is contained in:
Dennis Ushakov
2012-01-07 01:14:38 +04:00
parent 1cedb2b28f
commit 6edc1afa12
@@ -671,7 +671,9 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
myActionGroup.addAction(myAutoScrollFromSourceHandler.createToggleAction()).setAsSecondary(true);
myActionGroup.addAction(new SortByTypeAction()).setAsSecondary(true);
myActionGroup.addAction(new ScrollFromSourceAction());
if (!myAutoScrollFromSourceHandler.isAutoScrollMode()) {
myActionGroup.addAction(new ScrollFromSourceAction());
}
AnAction collapseAllAction = CommonActionsManager.getInstance().createCollapseAllAction(new TreeExpander() {
public void expandAll() {
@@ -1669,6 +1671,8 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
selectElementAtCaretNotLosingFocus(editor);
}
}
createToolbarActions();
updateTitleActions();
}
private class MySelectInContext implements SelectInContext {