Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to associate with View and the Editor of GEF
how to associate with View and the Editor of GEF [message #537059] Tue, 01 June 2010 08:24 Go to next message
沈吉  is currently offline 沈吉 Friend
Messages: 10
Registered: November 2009
Junior Member
a plug-in based on GEF, it's Editor can save as XML format.
now i contribute a view,display the xml file as a tree structure
in this view,it will generate menu when right-click the tree node,
now i want to implement to generate a figure in the
GEF's Editor after click the menu ,how to implement it, or
give a thought.

[Updated on: Tue, 01 June 2010 08:25]

Report message to a moderator

Re: how to associate with View and the Editor of GEF [message #537332 is a reply to message #537059] Wed, 02 June 2010 04:28 Go to previous messageGo to next message
Shawn Spiars is currently offline Shawn SpiarsFriend
Messages: 22
Registered: July 2009
Junior Member
沈吉 wrote:
> a plug-in based on GEF, it's Editor can save as XML format.
> now i contribute a view,display the xml file as a tree structure in this
> view,it will generate menu when right-click the tree node,now i want to
> implement to generate a figure in the GEF's Editor after click the menu
> ,how to implement it, or give a thought.

You probably should post this question on the eclipse.tools.gef
newsgroup. Usually with a GEF editor you would use a Palette containing
tools which you drag to the canvas. You can do something similar from
the popup menu in your file-based view.

My GEF skills are really rusty. Look at the CreateCommand.execute
method. The code may look something like this:

CreateCommand create = new CreateCommand();
create.setParent(defaultModel);
YourModel model = new YourModel();
create.setChild(model);
create.setConstraint(rect);
create.execute();

Shawn Spiars
Eclipse RCP Consultant
http://www.yazooconsulting.com
Re: how to associate with View and the Editor of GEF [message #537581 is a reply to message #537332] Thu, 03 June 2010 01:47 Go to previous message
沈吉  is currently offline 沈吉 Friend
Messages: 10
Registered: November 2009
Junior Member
TKS,i'm trying to implement it.
Previous Topic:Proper way to change file permissions in installed files after a bundle install?
Next Topic:ProgressAnimationItem is leaking AccessibleAdapter?
Goto Forum:
  


Current Time: Fri Apr 26 20:48:38 GMT 2024

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

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

Back to the top