Thursday, May 03, 2007

Diagram Context Menu Provider contribution

Certain menus(popup contribution, toolbar contribution) can be removed from a GMF editor by adding contributions to the existing extension point contribution.

For example on the diagram right click, most often you'd see Add option with a list of menus to choose from namely Note, Text, Ellipse, Rectangle etc.
The contribution point would be like
...








...
The menu group or popup menu action ids will be available in the plugin.xml of
org.eclipse.gmf.runtime.diagram.ui.providers