|Additional diagram initialization (with OpenDiagramPolicy) [message #228829]
||Tue, 05 May 2009 09:10
Registered: July 2009
We are trying to develop an editor for models, which look like this one:
There are 3 different views (diagram types), which represent parts of
the information contained in the whole model. Some of the views
represent the same information. The views were realized through diagram
partitioning. The current challenge is how to initialize the 3rd view
with the information (states and transitions), which was added to the
2nd view and (eventually also how to synchronize these two views). To
accomplish this task I have currently 2 main problems:
1. How to initialize (draw the states and the transitions of two 2nd
views) 3dr view, when create the 3rd view through an
OpenDiagramBehaviour? I have tried to do this in the
OpenDiagramEditPolicy#intializeNewDiagram()method, with the approach
which was suggested in some of the other posts. Is this the right place
to do it? The approaches suggested in the past mailing list posts seemed
complicated and unfortunately did not work, because I ran into this problem:
- I can't get the EditPart form the Diagram (View) object. How could
I get the EditPart of the diagram?
2. How can I get the Node EditParts (source and target), form the Edge
EditPart, which connects two Nodes? I haven't figured this out.
Semantically the Edge is represented with an EObject called
Relationship, which is has two connections (sourceNode and targetNode)
to a Node EObject.
Could someone help me to answer this questions?
Powered by FUDForum
. Page generated in 0.01745 seconds