Skip to main content



      Home
Home » Modeling » Epsilon » [EWL] Copy an element
icon5.gif  [EWL] Copy an element [message #548678] Thu, 22 July 2010 12:09 Go to next message
Eclipse UserFriend
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 05:18 Go to previous messageGo to next message
Eclipse UserFriend
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 12:16 Go to previous messageGo to next message
Eclipse UserFriend
Problem solved.

Thanks
Re: [EWL] Copy an element [message #590947 is a reply to message #548852] Tue, 27 July 2010 12:16 Go to previous message
Eclipse UserFriend
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: Fri Nov 07 10:13:09 EST 2025

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

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

Back to the top