Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Node with 2 labels [GMF]
Node with 2 labels [GMF] [message #582058] Thu, 15 October 2009 13:08 Go to next message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez Rielo
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
Hello everyone!

I'm creating some graphical editors with EuGENia. My problem is that I need create a node with 2 labels, one of them to show the name (EAttribute) and another one must be show a fixed text.

I don't know how to do, any ideas??

Thank you,
ajimenezr
Re: Node with 2 labels [GMF] [message #582069 is a reply to message #582058] Thu, 15 October 2009 13:27 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

You can specify the first label (the one that is bound to the EAttribute
) in the @gmf.node(label="...") annotation. Then you need to add the
second label in your .gmfgraph model via a polishing transformation as per:

http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-poli shing/

If you have trouble with this, please send your metamodel and a drawing
of how you want your node to look like and I'll be happy to help.

Cheers,
Dimitris

ajimenezr wrote:
> Hello everyone!
>
> I'm creating some graphical editors with EuGENia. My problem is that I
> need create a node with 2 labels, one of them to show the name
> (EAttribute) and another one must be show a fixed text.
>
> I don't know how to do, any ideas??
>
> Thank you,
> ajimenezr
Previous Topic:EGL import?
Next Topic:Node with 2 labels [GMF]
Goto Forum:
  


Current Time: Fri Jul 25 08:59:16 EDT 2014

Powered by FUDForum. Page generated in 0.04368 seconds