Spray: containment of different objects [message #879091] |
Wed, 30 May 2012 09:54  |
Eclipse User |
|
|
|
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
}
}
|
|
|
|
|
|
Re: Spray: containment of different objects [message #880281 is a reply to message #880091] |
Fri, 01 June 2012 14:55  |
Eclipse User |
|
|
|
Thank you, for your replies. I generated what I could with Spray and will now complete it with handwritten graphiti. Also thank you for your links Joerg, I didn't realise the "Mailing Group" link on the homepage was for the Spray forum.
|
|
|
Powered by
FUDForum. Page generated in 0.07368 seconds