Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Applying ATL Transformation
Applying ATL Transformation [message #1708590] Thu, 17 September 2015 17:48 Go to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
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 18:09]

Report message to a moderator

Re: Applying ATL Transformation [message #1708605 is a reply to message #1708590] Fri, 18 September 2015 06:01 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6481
Registered: July 2009
Senior Member
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 07:57 Go to previous messageGo to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
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 08:24]

Report message to a moderator

Re: Applying ATL Transformation [message #1708629 is a reply to message #1708622] Fri, 18 September 2015 08:39 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6481
Registered: July 2009
Senior Member
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: Fri Oct 18 09:06:20 GMT 2019

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

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

Back to the top