Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » ToolBarManager: remove subItem
ToolBarManager: remove subItem [message #660600] Sat, 19 March 2011 19:21 Go to next message
Artjom is currently offline ArtjomFriend
Messages: 9
Registered: December 2010
Junior Member
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 16:57 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
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
Previous Topic:[solved]org.eclipse.emf.validation.ocl missing
Next Topic:OutlineView: 2 TreeEditParts -> 1 Model
Goto Forum:
  


Current Time: Thu Dec 18 18:24:50 GMT 2014

Powered by FUDForum. Page generated in 0.01662 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software