Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2010-02-01 11:01:12 +0000
committerTomasz Zarna2010-02-01 11:01:12 +0000
commit6530eed2b8647da46b61202e0d19d0e34cf302ff (patch)
tree8d4221a79618950f5bf9ec6a784e1001ede23b0c /bundles/org.eclipse.team.ui/src
parentf7313f478d345fa2a110946a7e334792da66ed1b (diff)
downloadeclipse.platform.team-6530eed2b8647da46b61202e0d19d0e34cf302ff.tar.gz
eclipse.platform.team-6530eed2b8647da46b61202e0d19d0e34cf302ff.tar.xz
eclipse.platform.team-6530eed2b8647da46b61202e0d19d0e34cf302ff.zip
bug 301114: [Sync View] appendToGroup for "Expand All" button adds it in wrong place
Diffstat (limited to 'bundles/org.eclipse.team.ui/src')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/NavigationActionGroup.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/NavigationActionGroup.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/NavigationActionGroup.java
index be5385815..580365a02 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/NavigationActionGroup.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/NavigationActionGroup.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -17,11 +17,12 @@ import org.eclipse.jface.viewers.Viewer;
import org.eclipse.team.internal.ui.Utils;
import org.eclipse.team.internal.ui.synchronize.actions.ExpandAllAction;
import org.eclipse.team.internal.ui.synchronize.actions.NavigateAction;
-import org.eclipse.team.ui.synchronize.*;
+import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration;
+import org.eclipse.team.ui.synchronize.SynchronizePageActionGroup;
import org.eclipse.ui.IActionBars;
/**
- * Action group that provide expand, collapse and naviGAtion atCions.
+ * Action group that provide expand, collapse and navigation actions.
*/
public class NavigationActionGroup extends SynchronizePageActionGroup {
@@ -40,7 +41,8 @@ public class NavigationActionGroup extends SynchronizePageActionGroup {
collapseAll = new Action() {
public void run() {
- if (viewer == null || viewer.getControl().isDisposed() || !(viewer instanceof AbstractTreeViewer)) return;
+ if (viewer.getControl().isDisposed() || !(viewer instanceof AbstractTreeViewer))
+ return;
viewer.getControl().setRedraw(false);
((AbstractTreeViewer)viewer).collapseToLevel(viewer.getInput(), AbstractTreeViewer.ALL_LEVELS);
viewer.getControl().setRedraw(true);
@@ -60,10 +62,10 @@ public class NavigationActionGroup extends SynchronizePageActionGroup {
}
public void fillActionBars(IActionBars actionBars) {
IToolBarManager manager = actionBars.getToolBarManager();
+ appendToGroup(manager, ISynchronizePageConfiguration.NAVIGATE_GROUP, collapseAll);
if (gotoNext != null)
appendToGroup(manager, ISynchronizePageConfiguration.NAVIGATE_GROUP, gotoNext);
if (gotoPrevious != null)
appendToGroup(manager, ISynchronizePageConfiguration.NAVIGATE_GROUP, gotoPrevious);
- appendToGroup(manager, ISynchronizePageConfiguration.NAVIGATE_GROUP, collapseAll);
}
}

Back to the top