how to create a gmf.affixed for contaiment Reference [message #586056] |
Fri, 12 February 2010 17:48 |
Zuryman Messages: 17 Registered: January 2010 |
Junior Member |
|
|
Hi. smbd....
I have a metamodel with a class scheme
this class scheme is the metamodel's root.
then the metamodel has another class Strategic.
this class Strategic is content in scheme aftterthat
a class Actor is content in Strategic... and so on...
i create a Strategic Node... at the moment averething... is ok.... BUT!!
when i create an Actor Node
then I have problems... doesn't content inside Strategic....
a found that eugenia can do this...
this is my code.emf......
@namespace(uri="http://goalprof/1.0", prefix="goalprof")
package goalprof;
@gmf.diagram(foo="bar")
class Scheme {
attr String Name;
val Strategic[*] HasStrategics;
val Connector[*]links ;
}
@gmf.node(figure="ellipse", label="name"
)
class Strategic {
attr String Description;
@gmf.affixed(foo="bar")
val Actor[*] HasActors;
}
@gmf.node(label="name"
)
class Actor {
attr String Name;
}
abstract class NamedElement {
attr String name;
}
@gmf.link(source="source", target="target", label="name",
target.decoration="arrow")
class Connector extends NamedElement {
ref Strategic source;
ref Actor target;
}
my problem is Actor Node is on the edge of Stratgegic....
i need Actor separate from Strategic but content in it
Can Anybody Help me to do this... please!!
|
|
|
Powered by
FUDForum. Page generated in 0.02954 seconds