Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Node with 2 labels [GMF](I need create a node with 2 labels)
Node with 2 labels [GMF] [message #491760] Thu, 15 October 2009 17:08 Go to next message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
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 (not EAttribute).

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

Thank you,
ajimenezr

[Updated on: Thu, 15 October 2009 17:09]

Report message to a moderator

Re: Node with 2 labels [GMF] [message #491765 is a reply to message #491760] Thu, 15 October 2009 17:27 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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
Re: Node with 2 labels [GMF] [message #491768 is a reply to message #491765] Thu, 15 October 2009 17:49 Go to previous messageGo to next message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
Hi again,

I've already known your idea (I created another editors using GMF) but I want to create all through emfatic code and EuGENia plugin, but I don't know if it is possible:

Could I create a complex editor using only emfatic code and EuGENia?

Thanks,

ajimenezr
Re: Node with 2 labels [GMF] [message #491769 is a reply to message #491768] Thu, 15 October 2009 18:02 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

As explained in
http://eclipse.org/gmt/epsilon/doc/articles/eugenia-polishin g/ , EuGENia
doesn't provide a 1:1 mapping with GMF (if it did, it would be as
complex as GMF and this would beat the whole point).

Its aim is to support the most commonly used features of GMF using
annotations so that you can get a working and fairly complete editor
very quickly, and then provide you with a systematic way of polishing
your editor.

So the short answer is that you can create an editor up to a certain
level of complexity with the built-in annotations, but you then have to
use the polishing transformations if you need to go any further.

In case it helps, in addition to the example above, the following two
examples also use polishing transformations:

http://eclipse.org/gmt/epsilon/examples/index.php?example=or g.eclipse.epsilon.eugenia.examples.endlabels
http://eclipse.org/gmt/epsilon/examples/index.php?example=or g.eclipse.epsilon.eugenia.examples.flowchart

Cheers,
Dimitris

ajimenezr wrote:
> Hi again,
>
> I've already known your idea (I created another editors using GMF) but I
> want to create all through emfatic code and EuGENia plugin, but I don't
> know if it is possible:
>
> Could I create a complex editor using only emfatic code and EuGENia?
>
> Thanks,
>
> ajimenezr
Re: Node with 2 labels [GMF] [message #491774 is a reply to message #491769] Thu, 15 October 2009 18:35 Go to previous message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
Hi Dimitris,

your answer is perfect!

"Its aim is to support the most commonly used features of GMF using
annotations so that you can get a working and fairly complete editor
very quickly, and then provide you with a systematic way of polishing
your editor.

So the short answer is that you can create an editor up to a certain
level of complexity with the built-in annotations, but you then have to
use the polishing transformations if you need to go any further."


Thank you very much!
Alvaro
Re: Node with 2 labels [GMF] [message #582080 is a reply to message #491765] Thu, 15 October 2009 17:49 Go to previous message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
Hi again,

I've already known your idea (I created another editors using GMF) but I want to create all through emfatic code and EuGENia plugin, but I don't know if it is possible:

Could I create a complex editor using only emfatic code and EuGENia?

Thanks,

ajimenezr
Re: Node with 2 labels [GMF] [message #582102 is a reply to message #491768] Thu, 15 October 2009 18:02 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

As explained in
http://eclipse.org/gmt/epsilon/doc/articles/eugenia-polishin g/ , EuGENia
doesn't provide a 1:1 mapping with GMF (if it did, it would be as
complex as GMF and this would beat the whole point).

Its aim is to support the most commonly used features of GMF using
annotations so that you can get a working and fairly complete editor
very quickly, and then provide you with a systematic way of polishing
your editor.

So the short answer is that you can create an editor up to a certain
level of complexity with the built-in annotations, but you then have to
use the polishing transformations if you need to go any further.

In case it helps, in addition to the example above, the following two
examples also use polishing transformations:

http://eclipse.org/gmt/epsilon/examples/index.php?example=or g.eclipse.epsilon.eugenia.examples.endlabels
http://eclipse.org/gmt/epsilon/examples/index.php?example=or g.eclipse.epsilon.eugenia.examples.flowchart

Cheers,
Dimitris

ajimenezr wrote:
> Hi again,
>
> I've already known your idea (I created another editors using GMF) but I
> want to create all through emfatic code and EuGENia plugin, but I don't
> know if it is possible:
>
> Could I create a complex editor using only emfatic code and EuGENia?
>
> Thanks,
>
> ajimenezr
Re: Node with 2 labels [GMF] [message #582123 is a reply to message #491769] Thu, 15 October 2009 18:35 Go to previous message
Alvaro Jimenez Rielo is currently offline Alvaro Jimenez RieloFriend
Messages: 41
Registered: July 2009
Location: Rey Juan Carlos Universit...
Member
Hi Dimitris,

your answer is perfect!

"Its aim is to support the most commonly used features of GMF using
annotations so that you can get a working and fairly complete editor
very quickly, and then provide you with a systematic way of polishing
your editor.

So the short answer is that you can create an editor up to a certain
level of complexity with the built-in annotations, but you then have to
use the polishing transformations if you need to go any further."


Thank you very much!
Alvaro
Previous Topic:Node with 2 labels [GMF]
Next Topic:Set source.decoration in a link when navigability is BIDIRECTIONAL
Goto Forum:
  


Current Time: Fri Apr 19 08:41:04 GMT 2024

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

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

Back to the top