Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » EditPart creation at compartement programmatially
EditPart creation at compartement programmatially [message #234219] Fri, 19 June 2009 09:44
Sven Krause is currently offline Sven KrauseFriend
Messages: 64
Registered: July 2009
Member
Hi,

I'm initializing a new gmf diagram based on another (template).
Therefore I'm interating through the template emf model and creating the
views and elements using the
editPart.getCommand(CreateUnspecifiedTypeRequest.getRequestF orType(elementType)).The
edit part has been create using the OffscreenEditPartFactory.

That works fine for the top level nodes. But for comparements: I need to
determine the created nodes edit part. Therefore I'm inspecting the
diagram edit part (created using the OffscreenEditPartFactory). The view
and element creation command contains the newly created element and
node. But there are no edit parts for the newly created nodes within the
diagrams root edit part.

Are the edit parts created asynchron? May I create editparts by mayself
and how? xxEditPartProvider.createEditPart(newView) gives me a new one,
but the layout calculation failes later on in the rendering phase with
an NPE.


Sven
Previous Topic:IUndoContext and Undo/Redo actions
Next Topic:Link ending in a compartment
Goto Forum:
  


Current Time: Mon Mar 01 13:27:45 GMT 2021

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

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

Back to the top