Using a different feature for Containment and for Display [message #202837] |
Thu, 21 August 2008 05:02 |
Eclipse User |
|
|
|
Originally posted by: tobk42.gmx.de
Hello,
I've already worked on this problem some time ago, but could not find a
solution back then, so I used some workaround. Now that some time has
passed I want to pose this question again.
My Problem: I've built a simple BPMN editor and I want to keep as close
to the metamodel as possible. This means that I have the following
classes (among many others):
Pool
+- Ref 0-* lanes:Lane containment
+- Ref 1-1 process:Process containment
Process
+- Ref 0-* nodes:Node containment
Lane
+- Ref 0-* nodes:Node
Graphically, the Pool contains Lanes, and the Lanes contain the Nodes,
while the Process element is hidden. So I need the following: When
inserting a Node in a Lane, the Node has to be inserted in the
containing nodes-set of the Process and in the nodes set of the Lane,
and respectively for moving and deleting nodes. I've tried a number of
GMF hacks to achieve this, some of which partly worked, and I've also
seen some more or less ugly/complicated solutions in other tools, e.g.
the STP BPMN editor.
However, I can't imaging that this is not a quite common usecase that
should be possible to realise using GMF basics. Do you have any ideas?
Regards,
Tobias
PS.: In case you are interested: My workaround was to invert the
containment features of Process and Lane, so the Nodes are actually
contained in the Lanes and the process dynamically collects its Nodes
from all the Pool's Lanes.
|
|
|
Powered by
FUDForum. Page generated in 0.60342 seconds