Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EWL] Copy an element
icon5.gif  [EWL] Copy an element [message #548678] Thu, 22 July 2010 16:09 Go to next message
Rui Carlos  Gonçalves is currently offline Rui Carlos Gonçalves
Messages: 28
Registered: July 2009
Junior Member

I'm using the epsilon tools to draw graphs, where the graph nodes can have other graphs inside.

I have to copy a node (and all of its contents). Is there any simple way to do this without having to copy "manually" all (sub-)elements?


Re: [EWL] Copy an element [message #548852 is a reply to message #548678] Fri, 23 July 2010 09:18 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

You can do this by using the EcoreUtil copy() method as demonstrated here:

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

Cheers,
Dimitris

Rui Carlos Gonçalves wrote:
> I'm using the epsilon tools to draw graphs, where the graph nodes can
> have other graphs inside.
>
> I have to copy a node (and all of its contents). Is there any simple way
> to do this without having to copy "manually" all (sub-)elements?
Re: [EWL] Copy an element [message #549711 is a reply to message #548852] Tue, 27 July 2010 16:16 Go to previous messageGo to next message
Rui Carlos  Gonçalves is currently offline Rui Carlos Gonçalves
Messages: 28
Registered: July 2009
Junior Member

Problem solved.

Thanks


Re: [EWL] Copy an element [message #590947 is a reply to message #548852] Tue, 27 July 2010 16:16 Go to previous message
Rui Carlos  Gonçalves is currently offline Rui Carlos Gonçalves
Messages: 28
Registered: July 2009
Junior Member

Problem solved.

Thanks
--
http://cs.utexas.edu/~rcg


Previous Topic:[Eugenia] Drawing blocks with predefined inputs and outputs
Next Topic:[Eugenia] removing separator line before compartment
Goto Forum:
  


Current Time: Thu Oct 30 13:02:00 GMT 2014

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

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