Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] ATL transformation in a plugin involving profiles(different behaviour of ATL transformations involving profiles [plugin/run configuration])
[ATL] ATL transformation in a plugin involving profiles [message #772338] Thu, 29 December 2011 09:47 Go to next message
Alessandro Tiso is currently offline Alessandro Tiso
Messages: 17
Registered: February 2011
Junior Member
Hi All,

I have written a transformation from an UML model (that use a particular UML profile) and a model conform to a specific meta-model, to a model conform to a specific meta-model.
In other words the transformation has two input models (the profiled UML model and another model) and one output model. Using the run configuration the output model is created as expected.
After that I created an ATL plugin, first using the option available in eclipse Indigo, and then modifying the source generated to have a simple menu to activate the plugin.
When I debug the plugin in a Eclipse application, seems that stereotypes in the input model are ignored.
I have tried to add, as input, the profile model, without any differences in the output.

Can someone help me?

Thanks in advance
Re: [ATL] ATL transformation in a plugin involving profiles [message #772599 is a reply to message #772338] Fri, 30 December 2011 01:30 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 3844
Registered: July 2009
Senior Member
Hi

You are working in an area that has for a long time fallen into a gap
between the UML and OCL specifications; what does a profiled UML model
look like when used for OCL evaluation?

In the absence of any coherent OCL specification or implementation,
transformation tools have endeavoured to provide some support, sometimes
through reflective methods such as getAppliedStereotype(). These all
seem to ignore the problem that the run-time model should be the result
of profile application rather than the naked model with awkward appendages.

I suspect that the only way to get a useable profiled model today, is to
apply the profile in the UML Editor and then export the model to Ecore
so that all stereotypes have been applied and both you and ATL can see
what you're doing.

Regards

Ed Willink

On 29/12/2011 14:47, Alessandro Tiso wrote:
> Hi All,
>
> I have written a transformation from an UML model (that use a
> particular UML profile) and a model conform to a specific meta-model,
> to a model conform to a specific meta-model. In other words the
> transformation has two input models (the profiled UML model and
> another model) and one output model. Using the run configuration the
> output model is created as expected. After that I created an ATL
> plugin, first using the option available in eclipse Indigo, and then
> modifying the source generated to have a simple menu to activate the
> plugin. When I debug the plugin in a Eclipse application, seems that
> stereotypes in the input model are ignored.
> I have tried to add, as input, the profile model, without any
> differences in the output.
>
> Can someone help me?
>
> Thanks in advance
Re: [ATL] ATL transformation in a plugin involving profiles [message #772772 is a reply to message #772338] Fri, 30 December 2011 09:41 Go to previous message
Alessandro Tiso is currently offline Alessandro Tiso
Messages: 17
Registered: February 2011
Junior Member
Hi,

thank you for the fast response.

The model exported from the UML editor (I use magic draw) has the profile applied (I have verified this, opening the UML model with the UML model editor in Eclipse, in which I see the profile application).

I don't understand the different behaviour that I can see launching the transformation using a run configuration in eclipse or debugging the plugin in an Eclipse application.

Thanks in advance.
Previous Topic:Graphical ATL transformation tool
Next Topic:[ATL] Sequence problem
Goto Forum:
  


Current Time: Sun Apr 20 04:30:56 EDT 2014

Powered by FUDForum. Page generated in 0.01908 seconds