Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get the ShapeNodeEditPart linked to a model element?
How to get the ShapeNodeEditPart linked to a model element? [message #1228876] Wed, 08 January 2014 09:00 Go to next message
Epi Liptik is currently offline Epi LiptikFriend
Messages: 8
Registered: November 2013
Junior Member
Hi,

I can get my model element xxxImpl and i'm trying to find a way to get the corresponding ShapeNodeEditPart to update it manually.

How can i do that? any ideas?
Re: How to get the ShapeNodeEditPart linked to a model element? [message #1228883 is a reply to message #1228876] Wed, 08 January 2014 09:19 Go to previous message
Epi Liptik is currently offline Epi LiptikFriend
Messages: 8
Registered: November 2013
Junior Member
This works :
DiagramEditor d = (DiagramEditor) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
List<EditPart> children = d.getDiagramEditPart().getChildren();
Previous Topic:How can I use created editor by GMF in my java application
Next Topic:Fixed anchor points in old implemented diagrams
Goto Forum:
  


Current Time: Fri Nov 21 10:53:42 GMT 2014

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

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