| Contributing to GEF Context menu [message #82079] |
Wed, 04 June 2003 17:19  |
|
Originally posted by: schmerl+gef.cs.cmu.edu
Hi,
I'm trying to work out how to use plugin extensions to add contributions to
the context menu that comes up in the GEF diagram. Is this possible? If so,
could someone direct me to the documentation to do it?
So far, I've tried the objectContribution extension, using edit parts as the
objectClass, and also the class of the editor that registers the context
menu, to no avail.
Any help much appreciated,
Bradley.
P.S. This is what I've tried so far:
<extension point="org.eclipse.ui.popupMenus">
<objectContribution
id="myId"
objectClass="org.eclipse.gef.editparts.AbstractGraphicalEditPart ">
...
</objectContribution>
</extension>
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution id="myId"
targetID="org.eclipse.gef.examples.logicdesigner.LogicEditor ">
....
</viewerContribution>
</extension>
|
|
|