Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EOL, Ecore2GMF.eol] How duplicate GmfMap!NodeMapping?
[EOL, Ecore2GMF.eol] How duplicate GmfMap!NodeMapping? [message #585728] Fri, 05 February 2010 15:06 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 developing a GMF editor using EuGENia (Ecore2GMF.eol). I need to duplicate some complex NodeMapping (they include compartments, childreferences and labels).

I have already read this post about it: http://www.eclipse.org/forums/index.php?t=msg&th=125673& amp;start=0&

but I have some NodeMappings that are very complex to copy their elements one-by-one,so: Are there another option to duplicate a GmfMap!NodeMapping (or either element)?


Thanks,
Álvaro Jiménez Rielo
Student (Rey Juan Carlos University - Madrid)
Re: [EOL, Ecore2GMF.eol] How duplicate GmfMap!NodeMapping? [message #585759 is a reply to message #585728] Fri, 05 February 2010 18:04 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1772
Registered: July 2009
Senior Member
Hi Alvaro,

Are you creating these NodeMappings programmatically? If so, you may
want to define an operation for each one of them so that you can call
them multiple times. e.g.

operation createNodeMapping() : GmfMap!NodeMapping {
var nm : new GmfMap!NodeMapping;
...
// Populate the node mapping here
...
return nm;
}

Would that be an option?

Cheers,
Dimitris

ajimenezr wrote:
> Hello everyone!
>
> I'm developing a GMF editor using EuGENia (Ecore2GMF.eol). I need to
> duplicate some complex NodeMapping (they include compartments,
> childreferences and labels).
> I have already read this post about it:
> http://www.eclipse.org/forums/index.php?t=msg&th=125673& amp;start=0&
>
> but I have some NodeMappings that are very complex to copy their
> elements one-by-one,so: Are there another option to duplicate a
> GmfMap!NodeMapping (or either element)?
>
>
> Thanks, Álvaro Jiménez Rielo
> Student (Rey Juan Carlos University - Madrid)
Previous Topic:where is the basic project path for code generation taken from?
Next Topic:ETL
Goto Forum:
  


Current Time: Tue May 21 05:39:09 EDT 2013

Powered by FUDForum. Page generated in 0.10426 seconds