diff options
author | Remy Suen | 2012-02-13 20:47:07 +0000 |
---|---|---|
committer | Remy Suen | 2012-02-13 20:47:07 +0000 |
commit | 73986f3da72f4d8144c980d8216ac01f39ad4565 (patch) | |
tree | 1f57046446c6574f4d6ccd712da1869acb2f5ffc | |
parent | d526f5f0180bfd97c5faf647e424271927100d86 (diff) | |
download | eclipse.platform.ui-73986f3da72f4d8144c980d8216ac01f39ad4565.tar.gz eclipse.platform.ui-73986f3da72f4d8144c980d8216ac01f39ad4565.tar.xz eclipse.platform.ui-73986f3da72f4d8144c980d8216ac01f39ad4565.zip |
Bug 320478 Cannot customize perspectives (views and also actions)
Store the label defined in the plugin.xml in the model.
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java | 3 |
1 files changed, 2 insertions, 1 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 4a8a494853e..7e7cc50f11c 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2011 IBM Corporation and others. + * Copyright (c) 2006, 2012 IBM Corporation 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 @@ -291,6 +291,7 @@ public class MenuAdditionCacheEntry { for (IConfigurationElement toolbar : toolbars) { MToolBar item = MenuFactoryImpl.eINSTANCE.createToolBar(); item.setElementId(MenuHelper.getId(toolbar)); + item.getTransientData().put("Name", MenuHelper.getLabel(toolbar)); //$NON-NLS-1$ processToolbarChildren(toolBarContributions, toolbar, item.getElementId(), "after=additions"); //$NON-NLS-1$ trimContribution.getChildren().add(item); |