Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Refining mode: problems with drop feature
Re: Refining mode: problems with drop feature [message #1057389 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:27]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057390 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:27]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057495 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:27]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057496 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:26]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057607 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:26]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057608 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:26]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057715 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:26]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057716 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
No Message Body

[Updated on: Thu, 09 May 2013 04:26]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057980 is a reply to message #1055672] Fri, 10 May 2013 06:08 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
Hi again guys,
first sorry for writing the same message so many times, I don't even know how that happened.

Second, I am still getting the same error or warning as you pointed out, BUT now I'm using Ant to run the transformation and after running this, it can't save the file because it shows this same error, the exact message is:

Quote:

BUILD FAILED
C:\Users\A555206\e3.6\workspace\RCP2GWTTransformationChain\build.xml:22: The object 'org.eclipse.uml2.uml.internal.impl.InterfaceImpl@2140bb (name: MapGraphic, visibility: <unset>) (isLeaf: false, isAbstract: false)' is not contained in a resource.


I thought that since it uses the same input and output model it'd get saved if I didn't use the save feature, but that doesn't seem to work.
Anyways, it runs the transformation without an error, the error is when saving the file, so I don't know if that really makes a difference though.
Hope someone knows what's wrong!
Re: Refining mode: problems with drop feature [message #1058306 is a reply to message #1057980] Mon, 13 May 2013 10:08 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 469
Registered: July 2009
Senior Member
Hello,

Do you observe the same behavior when running your transformation via a launch configuration for instance?
If you are able to save/serialize the resulting model in that case, have you tried to then open it using a model editor/browser (such as the MoDisco Model Browser) and navigate it in order to find out the concerned element(s)?

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: Refining mode: problems with drop feature [message #1058452 is a reply to message #1058306] Tue, 14 May 2013 03:46 Go to previous message
Javier García is currently offline Javier García
Messages: 70
Registered: April 2013
Member
Hi Hugo,
Yes, if I launch them with the normal launch configuration they work perfectly but showing the message "The object 'org.eclipse.uml2.uml.internal.impl.InterfaceImpl@2140bb (name: MapGraphic, visibility: <unset>) (isLeaf: false, isAbstract: false)' is not contained in a resource." which I thought to be an error, but it creates the transformed model anyways.
No, the element doesn't exist, I can open the model perfectly with any editor, but I tried finding the element this error refers to an I couldn't find it in the output model, but it does exist in the input model.
The object does exist in the input model, and in the input model it's not contained in any resource, which is exactly the reason I use this refining module, to delete any element that is not contained in any resource.

To explain a bit further my transformation chain:
1st - Run ATL module with a superimposed module to copy only the packages and classes I want.
2nd - (Refining)Delete all the elements that are not contained in any resource
3rd - (Refining) Delete elements that point to deleted elements (dependencies, associations, interfacerealizations...)

So the first transformation leaves some elements outside of any model, they appear in the root, at the same level as the root model.
The second transformation deletes these elements and shows up that error above, but the input model generated is clean.
The third transformation shows up an error of the same kind, but with a dependency, but I don't understand it since all elements in its input model are contained in a resource.

I hope I explained myself good, but if there's anything that needs more explanation just ask Smile

Thanks for your help!
regards,
Javier
Previous Topic:code genetaion
Next Topic:Problem in a helper
Goto Forum:
  


Current Time: Tue May 28 09:27:45 EDT 2013

Powered by FUDForum. Page generated in 0.01705 seconds