Contributing to GEF Context menu [message #82079] |
Wed, 04 June 2003 17:19  |
Eclipse User |
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Contributing to GEF Context menu [message #902906 is a reply to message #899755] |
Tue, 21 August 2012 01:22  |
Eclipse User |
|
|
|
Hi,
In my editor, I created tree edit part. In that modelChildren method, i override as following
getModelChildren()
{
List result = new ArrayList();
result.add(component1);
result.add(component2);
return result;
}
my problem is, when i add shapes in editor in following order
component2 - 1
component1 - 1
component2 - 2
component1 - 2
but in my tree view it exist as follows
component1 - 1
component1 - 2
component2 - 1
component2 - 2
Kindly suggest any solution for this.
Thanks & Regards,
Karthikeyan.B
|
|
|
Powered by
FUDForum. Page generated in 0.04567 seconds