Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/SynchronizePageDropDownAction.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/SynchronizePageDropDownAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/SynchronizePageDropDownAction.java
index 40b468a2e..6957f3845 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/SynchronizePageDropDownAction.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/SynchronizePageDropDownAction.java
@@ -35,8 +35,7 @@ public class SynchronizePageDropDownAction extends Action implements IMenuCreato
public SynchronizePageDropDownAction(ISynchronizeView view) {
fView= view;
Utils.initAction(this, "action.refreshSubscriber."); //$NON-NLS-1$
- setMenuCreator(this);
- TeamUI.getSynchronizeManager().addSynchronizeParticipantListener(this);
+ setMenuCreator(this);
update();
}
@@ -46,9 +45,8 @@ public class SynchronizePageDropDownAction extends Action implements IMenuCreato
public void dispose() {
if (fMenu != null) {
fMenu.dispose();
+ fMenu = null;
}
-
- fView= null;
TeamUI.getSynchronizeManager().removeSynchronizeParticipantListener(this);
}
@@ -75,6 +73,7 @@ public class SynchronizePageDropDownAction extends Action implements IMenuCreato
action.setChecked(page.equals(current));
addActionToMenu(fMenu, action);
}
+ TeamUI.getSynchronizeManager().addSynchronizeParticipantListener(this);
return fMenu;
}

Back to the top