Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Delete Element in refining mode
[ATL] Delete Element in refining mode [message #80945] Wed, 07 May 2008 08:05 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric JouaultFriend
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 #80989 is a reply to message #80975] Wed, 07 May 2008 09:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amivi.fagbegnon.gmail.com

Ok I will proceed by removing references.

Thanks.
Re: [ATL] Delete Element in refining mode [message #81204 is a reply to message #80989] Wed, 14 May 2008 08:55 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:[ATL] ClassCastException
Next Topic:ATL and 3.4M6
Goto Forum:
  


Current Time: Wed Apr 24 23:57:51 GMT 2024

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

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

Back to the top