Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Webster2013-02-11 20:22:46 +0000
committerPaul Webster2013-02-11 20:23:02 +0000
commite404d76455c18a19223890106ef82bf76cca5ef5 (patch)
tree9bfba27c1e8001ed7ac8a8d7c2cdc82e6ab919b7 /bundles/org.eclipse.ui.workbench
parente296914671cd2cffd2c1a988475d1eeddaebf30d (diff)
downloadeclipse.platform.ui-e404d76455c18a19223890106ef82bf76cca5ef5.tar.gz
eclipse.platform.ui-e404d76455c18a19223890106ef82bf76cca5ef5.tar.xz
eclipse.platform.ui-e404d76455c18a19223890106ef82bf76cca5ef5.zip
Bug 384560 - Print toolbar does not have a real id
The toolitem should be created the same way as the menuItem in MenuHelper.
Diffstat (limited to 'bundles/org.eclipse.ui.workbench')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuHelper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuHelper.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuHelper.java
index e513a0fd5d9..22a863db9d0 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuHelper.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuHelper.java
@@ -815,6 +815,8 @@ public class MenuHelper {
toolItem.setTooltip(command.getDescription());
}
+ String itemId = cci.getId();
+ toolItem.setElementId(itemId == null ? id : itemId);
return toolItem;
}
}

Back to the top