summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorPaul Elder2013-01-11 09:49:29 (EST)
committer Paul Webster2013-01-11 09:49:29 (EST)
commit256fe7630c949f09c3d4f0f10242b7d05ca9b58d (patch)
tree7eb19f2199bfd75b5a386855f8b7bc6212c5b2aa
parent06362323dca578fa2abdaed9b23b6362a0076cd6 (diff)
downloadeclipse.platform.ui-256fe7630c949f09c3d4f0f10242b7d05ca9b58d.zip
eclipse.platform.ui-256fe7630c949f09c3d4f0f10242b7d05ca9b58d.tar.gz
eclipse.platform.ui-256fe7630c949f09c3d4f0f10242b7d05ca9b58d.tar.bz2
Bug 383815 - <visibleWhen> has no effect for dynamic menu contributions
Include visibleWhen in menu element.
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
index f7c8b98..b61be95 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
@@ -193,6 +193,7 @@ public class MenuAdditionCacheEntry {
MRenderedMenuItem menuItem = MenuFactoryImpl.eINSTANCE.createRenderedMenuItem();
menuItem.setElementId(id);
menuItem.setContributionItem(generator);
+ menuItem.setVisibleWhen(MenuHelper.getVisibleWhen(child));
container.getChildren().add(menuItem);
}
}