Skip to main content



      Home
Home » Modeling » EMF » Applying ATL Transformation
Applying ATL Transformation [message #1708590] Thu, 17 September 2015 13:48 Go to next message
Eclipse UserFriend
I need to apply model transformation on a model, which is already open in an ecore editor.

How can I do this?

At the same time, I need to preserve the changes that are already made on the model before applying the transformation. Is this possible?

[Updated on: Thu, 17 September 2015 14:09] by Moderator

Re: Applying ATL Transformation [message #1708605 is a reply to message #1708590] Fri, 18 September 2015 02:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Of course it's possible; it's only software, but I think you will need
to write the glue functionality.

You probably need to add a menu action to the Ecore Editor, that
maintains the editor and launches the transformation.

If this doesn't make sense to you then the answer is No.

Regards

Ed Willink


On 17/09/2015 18:48, UmaShankar Subramani wrote:
> I need to apply model transformation on a model, which is already open
> in the ecore editor.
>
> How can I do this?
>
> At the same time, I need to preserve the changes that are already made
> on the model before applying the transformation. Is this possible?
Re: Applying ATL Transformation [message #1708622 is a reply to message #1708605] Fri, 18 September 2015 03:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

Thanks for your reply.

But I want to apply the transformation programmatically any time, when the same model is changed by a remote user.

[Updated on: Fri, 18 September 2015 04:24] by Moderator

Re: Applying ATL Transformation [message #1708629 is a reply to message #1708622] Fri, 18 September 2015 04:39 Go to previous message
Eclipse UserFriend
Hi

Your requirements are very vague and unstable.

The Sample Ecore Editor is a 'Sample' demonstrating what you can do. You
are free to use it as the basis/inspiration for your own developments.

If what you really want is an auto-save action, you could probably
organise it by ensuring the your XXX metamodel has an XXXResourceFactory
and XXXResource registered for the *.xxx extension. The XXXResource can
then do transformation invocation as part of save in any model
loading/saving tool.

Regards

Ed Willink


On 18/09/2015 08:57, UmaShankar Subramani wrote:
> Hi Ed,
>
> Thanks for your reply.
>
> But I want to apply the transformation programmatically at any time,
> when the same model is changed by a remote user.
Previous Topic:how to define a source node and a target node in emf
Next Topic:EMF Import project/child from an XML file
Goto Forum:
  


Current Time: Mon Jul 07 23:32:17 EDT 2025

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

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

Back to the top