alexroldugin / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Enable creation of element that are not direct children of the model root #169

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Domain model:

A <>-ab- B
B <>-bc- D

Currently it is only possible to define 

diagram aDiagram for A

class B {
   ...
   behavior {
       create into ab palette "Elements";
   }
}

but it is not possible yet to define 

class C {
   ...
   behavior {
       create into ab.bd palette "Elements";
   }
}

(with ab.bd navigating from A to C over B, in the diagram the representation of 
C have to be nested into the representation of B).

Original issue reported on code.google.com by de.abg.r...@gmail.com on 2 Sep 2012 at 11:43

GoogleCodeExporter commented 8 years ago
The ab.cd is only clear when you know from which B you start when creating a C. 
 So you need to drag the C on top of  B to create it,  but then it would 
logically be rendered inside the B shape.  This is how it works with 
compartments now.  Howe else would you know to which B to add C.

Original comment by joswar...@gmail.com on 3 Nov 2012 at 6:13

GoogleCodeExporter commented 8 years ago
Children of other nodes (except root) can be created inside compartments of 
their parent node. 

Original comment by joswar...@gmail.com on 27 Nov 2012 at 9:37

GoogleCodeExporter commented 8 years ago
fixed by compartments resp. connection references inside Spray class definition

For the example above this can be modeled by defining bc as compartment 
reference in B and ab as compartment reference in A.

Original comment by de.abg.r...@gmail.com on 14 Jul 2013 at 12:35