diff options
| author | Remy Suen | 2012-02-27 14:10:55 +0000 |
|---|---|---|
| committer | Remy Suen | 2012-02-27 14:10:55 +0000 |
| commit | b6abe9cf8a95bf3bec07d0d3c34de8d4b521a3b0 (patch) | |
| tree | 1b18cf7f5db62b94406e2c6a6c4ae16b4b66626f | |
| parent | b2cb908e226851e81f06a7b15f0af0ed9e210a8c (diff) | |
| download | eclipse.platform.ui-b6abe9cf8a95bf3bec07d0d3c34de8d4b521a3b0.tar.gz eclipse.platform.ui-b6abe9cf8a95bf3bec07d0d3c34de8d4b521a3b0.tar.xz eclipse.platform.ui-b6abe9cf8a95bf3bec07d0d3c34de8d4b521a3b0.zip | |
Revert "Revert "Bug 361562 [Compatibility] Debug actions in the global debug toolbar are enabled prematurely""
This reverts commit c177e74208e0316544dbfb12a3ec8287462f9eec.
| -rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/ActionDelegateHandlerProxy.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/ActionDelegateHandlerProxy.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/ActionDelegateHandlerProxy.java index 0227a038b51..245fcf0e2b4 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/ActionDelegateHandlerProxy.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/ActionDelegateHandlerProxy.java @@ -55,6 +55,7 @@ import org.eclipse.ui.IWorkbenchPartReference; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.IWorkbenchWindowActionDelegate; import org.eclipse.ui.internal.WorkbenchPlugin; +import org.eclipse.ui.internal.util.BundleUtility; /** * <p> @@ -304,9 +305,14 @@ public final class ActionDelegateHandlerProxy implements ISelectionListener, */ private void updateDelegate(final IAction action, final IEvaluationContext context) { - if (action == null || delegate == null) { + if (action == null) { return; } + if (delegate == null) { + if (!BundleUtility.isActive(element.getContributor().getName()) || !loadDelegate()) { + return; + } + } if (editorDelegate != null) { final Object activeEditor = context |
