[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmt] [Epsilon]cloning a model element in EOL
|
- From: Kimon Polychroniadis <kpolychr@xxxxxxxxx>
- Date: Fri, 05 Sep 2008 02:18:49 +0100
- Newsgroups: eclipse.modeling.gmt
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Hi,
I am trying to copy an element of my model in another container in the
model. For example I got element A in container C1 and I want to make a
copy of A (e.g. B) in another container (e.g. C2). So the goal is to
have A in C1 and B in C2, wiht A and B being identical.
However, I noticed that the ':= ' operator moves the object rather
copying it. I also thought of using the clone() command, manipulating
the element as a Collection, no result. Is there a more rational way of
doing this?
Thank you in advance,
Kimon