[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] EditPart creation at compartement programmatially
|
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.getRequestForType(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