diff options
author | Paul Webster | 2010-11-29 20:13:36 +0000 |
---|---|---|
committer | Paul Webster | 2010-11-29 20:13:36 +0000 |
commit | 0c8b4c323815ab6f4df5048b2873f59306260132 (patch) | |
tree | f4d31e4db07260024fa0fc57fbd67e5190970487 /bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | |
parent | f1c9f7689f995ad54f57abf30b993da57f508dd9 (diff) | |
download | eclipse.platform.ui-0c8b4c323815ab6f4df5048b2873f59306260132.tar.gz eclipse.platform.ui-0c8b4c323815ab6f4df5048b2873f59306260132.tar.xz eclipse.platform.ui-0c8b4c323815ab6f4df5048b2873f59306260132.zip |
Bug 329646 - Keybindings aren't found or shown when run from .jars
context restructuring without binding restructuring
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java')
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java index 360561d1c80..a744d0aad60 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java @@ -24,7 +24,6 @@ import java.util.Dictionary; import java.util.HashMap; import java.util.HashSet; import java.util.Hashtable; -import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -35,8 +34,6 @@ import org.eclipse.core.commands.CommandManager; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.commands.common.EventManager; -import org.eclipse.core.commands.common.NotDefinedException; -import org.eclipse.core.commands.contexts.Context; import org.eclipse.core.commands.contexts.ContextManager; import org.eclipse.core.commands.contexts.ContextManagerEvent; import org.eclipse.core.commands.contexts.IContextManagerListener; @@ -1882,19 +1879,6 @@ public final class Workbench extends EventManager implements IWorkbench { StartupThreading.runWithoutExceptions(new StartupRunnable() { public void runWithException() { - HashMap<String, String> contextToParent = new HashMap<String, String>(); - Iterator i = contextManager.getDefinedContextIds().iterator(); - while (i.hasNext()) { - Context c = contextManager.getContext((String) i.next()); - if (c.isDefined()) { - try { - contextToParent.put(c.getId(), c.getParentId()); - } catch (NotDefinedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - } contextManager.addContextManagerListener(new IContextManagerListener() { public void contextManagerChanged(ContextManagerEvent contextManagerEvent) { if (contextManagerEvent.isContextChanged()) { @@ -1906,16 +1890,7 @@ public final class Workbench extends EventManager implements IWorkbench { } }); contextService.readRegistry(); - Iterator<Entry<String, String>> e = contextToParent.entrySet().iterator(); - while (e.hasNext()) { - Entry<String, String> entry = e.next(); - Context c = contextManager.getContext(entry.getKey()); - if (!c.isDefined()) { - c.define(entry.getKey(), null, entry.getValue()); - } - } - EContextService ecs = (EContextService) e4Context.get(EContextService.class - .getName()); + EContextService ecs = e4Context.get(EContextService.class); ecs.activateContext(IContextService.CONTEXT_ID_DIALOG_AND_WINDOW); } }); |