Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Spray: containment of different objects
Spray: containment of different objects [message #879091] Wed, 30 May 2012 09:54 Go to previous message
Miriam Baran is currently offline 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 
    }
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:get access to Diagram from DiagramEditor
Next Topic:[DND] Drop business object from external TableViewer
Goto Forum:
  


Current Time: Fri May 24 19:06:49 EDT 2013

Powered by FUDForum. Page generated in 0.01608 seconds