Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Doubt] About Eugenia(Create node)
[Doubt] About Eugenia [message #870852] Wed, 09 May 2012 23:04 Go to next message
Pablo Silva is currently offline Pablo SilvaFriend
Messages: 28
Registered: May 2012
Location: Brazil
Junior Member

Hi guys!

First, I would like to apologize by english. I'm brazilian.

I'm new in EMFatic and Eugenia, and I'm developing a graphic editor in GMF by Eugenia.
How you can see in a part of my code:

@gmf.node(label="name", figure="rectangle")
class TGVariable extends TGObject {
  attr String[1] value = "";
}


class TGParameter extends TGVariable {
}

@gmf.node(label="name",figure="rectangle")
class TGFunction extends TGAbstractFunction {
  !resolve val TGParameter[*] parameters;
  attr String[1] parameters_str;
}



I noted TGVariable as a node and TGParameter extends this class. The problem is that when I generate the editor, even if not annotated TGParameter as a node, it can be create as one.

I wonder how to TGParameter not appear as a node in my editor.

Thanks for all and more one time sorry about the english.
Re: [Doubt] About Eugenia [message #870914 is a reply to message #870852] Thu, 10 May 2012 08:58 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 919
Registered: July 2009
Senior Member
Hi Pablo,

By extending TGVariable, TGParameter also inherits all its annotations (i.e. @gmf.node). A workaround would be to use a polishing transformation [1] to delete the TGVariable-related elements in the .gmfxxx models, or just the creation tool in the .gmftool model.

Cheers,
Dimitris

[1] http://www.eclipse.org/epsilon/doc/articles/eugenia-polishing/
Re: [Doubt] About Eugenia [message #871047 is a reply to message #870914] Thu, 10 May 2012 16:14 Go to previous message
Pablo Silva is currently offline Pablo SilvaFriend
Messages: 28
Registered: May 2012
Location: Brazil
Junior Member

Oh ok!

I understand. I imagined I could do this only with Eugenia.

Thanks for the help!
Previous Topic:How to use EVL validation from GEF
Next Topic:Problem with EMFATIC file
Goto Forum:
  


Current Time: Mon Dec 22 15:44:22 GMT 2014

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

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