|Create Diagram with initial Content [message #664663]
||Mon, 11 April 2011 14:40
Registered: January 2011
I want to create an editor, which contains a couple of elements after startup. So i modified the method xxxDiagramEditorUtil.createInitialModel(), but my problem is that the elements are only stored in the domain model but not in the notational model. If i add another element to the diagram, everything works fine.|
So i think that i have to create nodes for each element i add in the createInitialModel by using the ViewService.createNode(...) - method. But i am not able to managed this correctly. Can someone plz help me ??
Another point i do not really understand is that if i add a getCreateCommand() - method in a generated EditPolicy which extends the normal BaseItemSemanticPolicy nothing happens. The method is not called. Is there another point where i have to define that it should be possible to add an element ??
I hope my points are understandable, because englisch is not my foreign language.
Thanks for help
Powered by FUDForum
. Page generated in 0.01608 seconds