Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Using a different feature for Containment and for Display
Using a different feature for Containment and for Display [message #202837] Thu, 21 August 2008 09:02
Eclipse UserFriend
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.
Previous Topic:Customizable ShapeCompartmentEditPart
Next Topic:Angry about GMF Tutorial and Versioning!!!!
Goto Forum:
  


Current Time: Sun Sep 15 18:20:28 GMT 2024

Powered by FUDForum. Page generated in 0.04030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top