diff options
author | Anton Leherbauer | 2015-04-29 10:26:13 +0000 |
---|---|---|
committer | Anton Leherbauer | 2015-04-29 10:52:42 +0000 |
commit | aca41c340fbdc04e14f3f3de807d5cfb7244e1cb (patch) | |
tree | aecb1e7b2f5bec0bffc8e35ad9113dc6b0b52afa | |
parent | 6e462af91a8b5741f253e0d280f79100d48e971b (diff) | |
download | eclipse.platform.debug-aca41c340fbdc04e14f3f3de807d5cfb7244e1cb.tar.gz eclipse.platform.debug-aca41c340fbdc04e14f3f3de807d5cfb7244e1cb.tar.xz eclipse.platform.debug-aca41c340fbdc04e14f3f3de807d5cfb7244e1cb.zip |
Bug 440033 - InjectionException: java.lang.StackOverflowError inI20150511-2130I20150511-2000I20150510-2000I20150509-1500I20150508-2000I20150507-2000I20150506-2000I20150505-2000I20150504-2000I20150503-2000I20150502-1500I20150501-2000I20150430-1445I20150429-2000I20150429-1330I20150429-1230
org.eclipse.e4.ui.workbench.renderers.swt
Change-Id: Idae8f17e88a994f7ab8c1089796128f6a73c35b4
Signed-off-by: Anton Leherbauer <anton.leherbauer@windriver.com>
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/DebugCommandHandler.java | 12 |
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; } |