Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » how to create a gmf.affixed for contaiment Reference(!!Eugenia TRouble!!!)
how to create a gmf.affixed for contaiment Reference [message #514185] Fri, 12 February 2010 17:48 Go to next message
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!!






Re: how to create a gmf.affixed for contaiment Reference [message #514191 is a reply to message #514185] Fri, 12 February 2010 13:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Zuryman,

I'm afraid I don't understand what you mean by "I need Actor separate
from Strategic but content in it". Could you possibly send me a
screenshot of what the diagram looks like now and a sketch (e.g with
mspaint) of what you want it to look like? My email is dskolovos gmail com.

Cheers,
Dimitris

Zuryman wrote:
> 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!!
>
>
>
>
>
>
>
Re: how to create a gmf.affixed for contaiment Reference [message #514513 is a reply to message #514191] Mon, 15 February 2010 16:39 Go to previous messageGo to next message
Zuryman  is currently offline Zuryman Friend
Messages: 17
Registered: January 2010
Junior Member
Hi, Dimitriv...

Everithing work right, !!nodes phantom were my solution!

My problem was solved.

!!Tanks a lot!!!
Re: how to create a gmf.affixed for contaiment Reference [message #586072 is a reply to message #514185] Fri, 12 February 2010 17:56 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Zuryman,

I'm afraid I don't understand what you mean by "I need Actor separate
from Strategic but content in it". Could you possibly send me a
screenshot of what the diagram looks like now and a sketch (e.g with
mspaint) of what you want it to look like? My email is dskolovos gmail com.

Cheers,
Dimitris

Zuryman wrote:
> 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!!
>
>
>
>
>
>
>
Re: how to create a gmf.affixed for contaiment Reference [message #586158 is a reply to message #586072] Mon, 15 February 2010 16:39 Go to previous message
Zuryman  is currently offline Zuryman Friend
Messages: 17
Registered: January 2010
Junior Member
Hi, Dimitriv...

Everithing work right, !!nodes phantom were my solution!

My problem was solved.

!!Tanks a lot!!!
Previous Topic:Making an ETL rule extend two rules
Next Topic:Eugenia: Nodes with images instead of shapes
Goto Forum:
  


Current Time: Fri Apr 19 22:41:58 GMT 2024

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

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

Back to the top