Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Suen2012-02-27 14:10:55 +0000
committerRemy Suen2012-02-27 14:10:55 +0000
commitb6abe9cf8a95bf3bec07d0d3c34de8d4b521a3b0 (patch)
tree1b18cf7f5db62b94406e2c6a6c4ae16b4b66626f
parentb2cb908e226851e81f06a7b15f0af0ed9e210a8c (diff)
downloadeclipse.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""
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/ActionDelegateHandlerProxy.java8
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

Back to the top