Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EWL] Copy an element
[EWL] Copy an element [message #590837] Thu, 22 July 2010 12: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?
--
http://cs.utexas.edu/~rcg


Re: [EWL] Copy an element [message #590872 is a reply to message #590837] Fri, 23 July 2010 05:18 Go to previous 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?
Previous Topic:[Eugenia] Drawing icons instead of labels in links
Next Topic:[Eugenia] Drawing icons instead of labels in links
Goto Forum:
  


Current Time: Fri Jul 25 23:19:05 EDT 2014

Powered by FUDForum. Page generated in 0.01670 seconds