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 04:00 Go to next message
Epi Liptik is currently offline Epi Liptik
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 04:19 Go to previous message
Epi Liptik is currently offline Epi Liptik
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: Tue Jul 29 16:52:32 EDT 2014

Powered by FUDForum. Page generated in 0.02139 seconds