Spray: containment of different objects [message #879091] |
Wed, 30 May 2012 13:54 |
Miriam Baran Messages: 16 Registered: May 2012 |
Junior Member |
|
|
Hello,
I am working with Spray, which generates Graphiti, as this Forum seems to be closest to what I am searching, I hope to find answers here.
The Model I am working with is Ecore. In my diagram (once the spray-project launched) I can create classes and packages and connect them with each-other. Now I would like to add the possibility to let a class be contained in a package (which is possible in the ecore model), but all I could find was references, which will add the classes name to the package, but not its graphical representation. How do I add (graphically) one Object to an other? Is it even possible, or do I need to inject handwritten graphiti?
Here is how I tried to do, but it gave the result I described above:
class EPackage {
container (width=1000) {
text ( ) { name }
reference eClassifiers;
reference eSubpackages;
}
behavior {
create into eSubpackages palette "Containers"
askFor name
}
}
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03171 seconds