Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » ToolBarManager: remove subItem
ToolBarManager: remove subItem [message #660600] Sat, 19 March 2011 15:21 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:40:30 EDT 2025

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

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

Back to the top