Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-02-27 19:30:14 +0000
committerJean Michel-Lemieux2004-02-27 19:30:14 +0000
commitc0f47c04f2cca4da5c380a0086fc9c7a6ac2dd38 (patch)
treedf2bae19b13826d3cafb180dd957aa7b9b15046e
parentbfd50bddfde4e73404290f029c257486bb85632d (diff)
downloadeclipse.platform.team-c0f47c04f2cca4da5c380a0086fc9c7a6ac2dd38.tar.gz
eclipse.platform.team-c0f47c04f2cca4da5c380a0086fc9c7a6ac2dd38.tar.xz
eclipse.platform.team-c0f47c04f2cca4da5c380a0086fc9c7a6ac2dd38.zip
Fix because in some cases the sync menus where not shown. Subscriber action now
implements IEditorActionDelegate.
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/SubscriberAction.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/SubscriberAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/SubscriberAction.java
index 4ebb5d37d..6f0dc745b 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/SubscriberAction.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/SubscriberAction.java
@@ -27,8 +27,8 @@ import org.eclipse.team.core.synchronize.*;
import org.eclipse.team.internal.core.TeamPlugin;
import org.eclipse.team.internal.ui.TeamUIPlugin;
import org.eclipse.team.internal.ui.Utils;
-import org.eclipse.team.ui.synchronize.viewers.SynchronizeModelElement;
import org.eclipse.team.ui.synchronize.viewers.SyncInfoModelElement;
+import org.eclipse.team.ui.synchronize.viewers.SynchronizeModelElement;
import org.eclipse.ui.*;
/**
@@ -46,7 +46,7 @@ import org.eclipse.ui.*;
* @see SyncInfoModelElement
* @since 3.0
*/
-public abstract class SubscriberAction implements IObjectActionDelegate, IViewActionDelegate {
+public abstract class SubscriberAction implements IObjectActionDelegate, IViewActionDelegate, IEditorActionDelegate {
private IStructuredSelection selection;
private IWorkbenchPart part;
@@ -304,6 +304,16 @@ public abstract class SubscriberAction implements IObjectActionDelegate, IViewAc
}
}
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
+ */
+ public void setActiveEditor(IAction action, IEditorPart targetEditor) {
+ // Ignore since these actions aren't meant for editors.
+ // This seems to be required because of a bug in the UI
+ // plug-in that will disable viewer actions if they aren't
+ // editor actions? Go figure...
+ }
protected Shell getShell() {
if(part != null) {

Back to the top