Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF editor without making use of NodeEditPart for node model elements?
GEF editor without making use of NodeEditPart for node model elements? [message #1017000] Fri, 08 March 2013 14:29 Go to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 59
Registered: October 2011
Location: Berlin, Germany
Member

I'm wondering whether it's possible to implement a GEF editor without making use of NodeEditPart & ConnectionEndpointEditPolicy().

My model doesn't follow the structure GEF seems to assume, in that connections aren't children of nodes. Instead they're children of the graph.

I'm having major difficulties with refreshing figures (cf. http://www.eclipse.org/forums/index.php/mv/msg/458085/1016992/#msg_1016992), because I cannot include connections in a NodeEditPart's getModelChildren() method, but neither can I include them in the GraphEditPart's getModelChildren(), as they need to be registered with the NodeEditPart's getModelSourceConnection() and getModelTargetConnection() methods... Trying to get them as model children in the GraphEditPart leads to an index error (quite obviously).

The only way out I can see is to neglect the usage of NodeEditPart altogether and do everything manually. But will this work?
Re: GEF editor without making use of NodeEditPart for node model elements? [message #1018697 is a reply to message #1017000] Thu, 14 March 2013 10:21 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Why can't you use NodeEditPart? GEF doesn't assume any structure of the model.
Previous Topic:Error in editor - how to fix?
Next Topic:[Zest] Creation of a child node on the fly takes 1 sec
Goto Forum:
  


Current Time: Sat Nov 22 14:25:37 GMT 2014

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

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