Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » how to create a gmf.affixed for contaiment Reference
how to create a gmf.affixed for contaiment Reference [message #586056] Fri, 12 February 2010 17:48
Zuryman  is currently offline Zuryman Friend
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!!
Previous Topic:attaching eugenia generated diagram with editor
Next Topic:Could not connect to MySQL
Goto Forum:
  


Current Time: Fri Dec 19 01:41:02 GMT 2014

Powered by FUDForum. Page generated in 0.01537 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software