ToolBarManager: remove subItem [message #660600] |
Sat, 19 March 2011 15:21  |
Eclipse User |
|
|
|
I want to remove a subitems from ToolBarManager. Here I have found how can I remove an item from ToolBarManager, but now I need only to remove in ContributionItem "Align" the subitem "Align Center", how can I do it?
|
|
|
Re: ToolBarManager: remove subItem [message #660653 is a reply to message #660600] |
Sun, 20 March 2011 12:57  |
Eclipse User |
|
|
|
On 19-03-11 12:21, Artjom wrote:
> I want to remove a subitems from ToolBarManager.
> http://code.google.com/p/gmftools/wiki/DiagramActionBarContr ibutor I
> have found how can I remove an item from ToolBarManager, but now I need
> only to remove in ContributionItem "Align" the subitem "Align Center",
> how can I do it?
GMF runtime declares all these actions in a plugin called:
org.eclipse.gmf.runtime.diagram.ui.providers (Open it, you will see all
definitions).
Through the same extension, it's possible to remove one or more
declared contributions. (It's going to be trickier to exclude the plugin
I think).
The extension name is:
point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders "
Have a look at it, you will see there are entries to remove items.
Example:
<partPredefinedItem
id="fillColorContributionItem"
toolbarPath="/"
menubarPath="/diagramMenu/fontColorLineGroup"
removeFromToolbar="true"
removeFromMenubar="true">
</partPredefinedItem>
Have GMFun! Christophe
|
|
|
Powered by
FUDForum. Page generated in 0.02703 seconds