Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Remove menu items from the popup menus(continued from list)
Remove menu items from the popup menus(continued from list) [message #166463] Mon, 31 December 2007 05:48
Eclipse UserFriend
Originally posted by: govind.ashrit.xxx.com

hi all..

i want to remove the menu or disable some items from the menu..how do i
do..it
i referred the previous post..i was able to get the below query and reply
to that.

but it is not working..or what i have done may be wrong.

Please help me in this regard..


Regards
Govind R











It is possible to remove menu items from the popup menus that were
contributed via GMF's Contribution Item Service. Check out
popupPredefinedItem in the Contribution Item Service schema documentation
or search for popupPredefinedItem in org.eclipse.gmf.ecore.editor's
plugin.xml file.

Regards,
Cherie


Alex Haag wrote:

Hi,


I've got a GMF-generated Editor. I want to remove some of the
generated menuitems that are shown in the popup-menu which pops up after
right-click in the diagram-field of the Editor.
I've attached a screenshot that shows this menu.

What I want to do is remove items like the ones between 'delete from
model' and 'show Properties View'.

I think the menuitems like 'run as' or debug as' are derived from the
Eclipse-IDE itself.

Does anyone know how I can disable/remove these Items? I can add Items
by extensionpoint-entries in the plugin.xml, but is this the way to remove
items too?

My boss will be very pleased if I could manage to do this, because
these items are not needed in our gmf-editor and I'd like to prevent the
user from clicking some false actions.

Any help appreciated
Greets Alex Haag
Previous Topic:Can we disable right click on figure
Next Topic:decoration in the middle of connection
Goto Forum:
  


Current Time: Wed Sep 25 23:04:43 GMT 2024

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

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

Back to the top