Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Cannot add popupMenu
Cannot add popupMenu [message #86389] Tue, 19 December 2006 16:55 Go to next message
Eclipse UserFriend
Originally posted by: zuegg.hotmail.it

Hi,
I'm trying to add a custom popup menu for my edit parts and I tryed to
do this following the mindmap example so I added this code in the
plugin.xml of my diagram:

<extension point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="false"

id=" it.lynx.intesa.ide.model.visualModel.diagram.edit.parts.VPag eEditPart "
objectClass="org.eclipse.gef.GraphicalEditPart">
<menu
id="deleteMenu"
label="Delete"
path="additions">
<separator name="deleteGroup"/>
</menu>
<action

class=" it.lynx.intesa.ide.model.visualModel.diagram.actions.DeleteM odelAction "
enablesFor="1"

id=" it.lynx.intesa.ide.model.visualModel.diagram.actions.DeleteM odelAction "
label="Delete model"
menubarPath="deleteMenu/deleteGroup">
</action>
</objectContribution>
</extension>


It's the same as in the example but it desn't show the menu when i right
click on the edit part...

Hope someone can help me :(
Thanks,
M.
Re: Cannot add popupMenu [SOLVED] [message #86408 is a reply to message #86389] Tue, 19 December 2006 17:29 Go to previous message
Eclipse UserFriend
Originally posted by: zuegg.hotmail.it

There was my mistake, i had commented the context menu registration XD

Thanks,
M.
Previous Topic:BPMN inclusive decision merge shape
Next Topic:Can I have a semi-lite runtime?
Goto Forum:
  


Current Time: Tue Apr 23 09:39:16 GMT 2024

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

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

Back to the top