|EditPart creation at compartement programmatially [message #234219]
||Fri, 19 June 2009 09:44
| Sven Krause
Registered: July 2009
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
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
Powered by FUDForum
. Page generated in 0.01366 seconds