[ATL] Delete Element in refining mode [message #80945] |
Wed, 07 May 2008 08:05 |
Eclipse User |
|
|
|
Originally posted by: amivi.fagbegnon.gmail.com
Hello,
I found topics about how to delete an element from a model using
superimposition.
I would like to know how to do it using refining mode execution.
Thanks.
|
|
|
Re: [ATL] Delete Element in refining mode [message #80975 is a reply to message #80945] |
Wed, 07 May 2008 08:54 |
Frédéric Jouault Messages: 572 Registered: July 2009 |
Senior Member |
|
|
Hello,
> I found topics about how to delete an element from a model using
> superimposition.
> I would like to know how to do it using refining mode execution.
In ATL 2004, deleting an element can be achieved by making sure no
reference to it is left. Because the ATL 2004 refining mode works by
copying the source model, the element to "delete" was actually "not copied".
In ATL 2006, the refining mode works by performing in-place changes.
Therefore, an actual "delete" must be performed. This is not implemented
yet.
In the mean time, you may try removing all references to the element you
want to delete. Although it will still be in the model, you may ignore
it later. For instance, the TCS extractor will ignore it because it is
not reachable from the root.
Please, note that the ATL 2006 refining mode is still experimental.
Regards,
Frédéric Jouault
|
|
|
|
Re: [ATL] Delete Element in refining mode [message #81204 is a reply to message #80989] |
Wed, 14 May 2008 08:55 |
Eclipse User |
|
|
|
Originally posted by: amivi.fagbegnon.gmail.com
Hi,
I am trying to delete uml elements by removing references but it is not
simple. Endeed the do block is not supported by ATL 2006 refining mode and
most of properties are not changeable...
Does anybody have an exemple of deleting element?
I saw documentation about reverse bindings. How can I use it in my case?
Thanks.
|
|
|
Re: [ATL] Delete Element in refining mode [message #81431 is a reply to message #81204] |
Fri, 16 May 2008 07:29 |
Eclipse User |
|
|
|
Originally posted by: amivi.fagbegnon.gmail.com
Hi,
Finally I define 2 refinements to resolve my pb:
- first I use ATL 2006 in refining mode to do in-place update
- and in a second time I use ATL 2004 in refining mode. I use the method
destroy() in do block to delete elements.
May be it's not the optimal solution. If somebody has a better solution it
will be very kind to share it.
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03508 seconds