Cannot add popupMenu [message #86389] |
Tue, 19 December 2006 11:55  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03089 seconds