Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2015-04-29 06:26:13 -0400
committerAnton Leherbauer2015-04-29 06:52:42 -0400
commitaca41c340fbdc04e14f3f3de807d5cfb7244e1cb (patch)
treeaecb1e7b2f5bec0bffc8e35ad9113dc6b0b52afa /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent6e462af91a8b5741f253e0d280f79100d48e971b (diff)
downloadeclipse.platform.debug-aca41c340fbdc04e14f3f3de807d5cfb7244e1cb.tar.gz
eclipse.platform.debug-aca41c340fbdc04e14f3f3de807d5cfb7244e1cb.tar.xz
eclipse.platform.debug-aca41c340fbdc04e14f3f3de807d5cfb7244e1cb.zip
org.eclipse.e4.ui.workbench.renderers.swt Change-Id: Idae8f17e88a994f7ab8c1089796128f6a73c35b4 Signed-off-by: Anton Leherbauer <anton.leherbauer@windriver.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/DebugCommandHandler.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/DebugCommandHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/DebugCommandHandler.java
index 9cc8c4c25..561e64e16 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/DebugCommandHandler.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/DebugCommandHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2013 Wind River Systems and others.
+ * Copyright (c) 2006, 2015 Wind River Systems 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
@@ -73,10 +73,13 @@ public abstract class DebugCommandHandler extends AbstractHandler {
EnabledTarget(IWorkbenchWindow window) {
fWindow = window;
+ }
+
+ void init() {
DebugCommandService.getService(fWindow).updateCommand(getCommandType(), this);
getContextService(fWindow).addDebugContextListener(this);
- }
-
+ }
+
@Override
public void setEnabled(boolean enabled) {
boolean oldEnabled = fEnabled;
@@ -188,7 +191,8 @@ public abstract class DebugCommandHandler extends AbstractHandler {
EnabledTarget target = fEnabledTargetsMap.get(window);
if (target == null) {
target = new EnabledTarget(window);
- fEnabledTargetsMap.put(window, target);
+ fEnabledTargetsMap.put(window, target);
+ target.init();
}
return target;
}

Back to the top