diff options
author | Paul Webster | 2010-10-25 17:54:29 +0000 |
---|---|---|
committer | Paul Webster | 2010-10-25 17:54:29 +0000 |
commit | 2a2c076bc8ecbb8c72f801d7a7095169294988a7 (patch) | |
tree | cd0e0a466b6b6e3592a91a9ca1a1719bb85b4d9f /bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | |
parent | f7f9d373ddeb6876ac3cb236fb707f9c85c37315 (diff) | |
download | eclipse.platform.ui-2a2c076bc8ecbb8c72f801d7a7095169294988a7.tar.gz eclipse.platform.ui-2a2c076bc8ecbb8c72f801d7a7095169294988a7.tar.xz eclipse.platform.ui-2a2c076bc8ecbb8c72f801d7a7095169294988a7.zip |
Bug 325390 - No menu contribution is showing up for the PIIclipse bundles
Fix to make actionMenuSelection available
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 | 7 |
1 files changed, 7 insertions, 0 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 0323ba9b506..adf58ca9b4b 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 @@ -3188,6 +3188,10 @@ public final class Workbench extends EventManager implements IWorkbench { public final void addShowingMenus(final Set menuIds, final ISelection localSelection, final ISelection localEditorInput) { menuSourceProvider.addShowingMenus(menuIds, localSelection, localEditorInput); + Map currentState = menuSourceProvider.getCurrentState(); + for (String key : menuSourceProvider.getProvidedSourceNames()) { + e4Context.set(key, currentState.get(key)); + } } /** @@ -3204,6 +3208,9 @@ public final class Workbench extends EventManager implements IWorkbench { public final void removeShowingMenus(final Set menuIds, final ISelection localSelection, final ISelection localEditorInput) { menuSourceProvider.removeShowingMenus(menuIds, localSelection, localEditorInput); + for (String key : menuSourceProvider.getProvidedSourceNames()) { + e4Context.remove(key); + } } /* |