Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] EMF-VM and modelhandlers
[ATL] EMF-VM and modelhandlers [message #85280] Thu, 26 June 2008 11:33 Go to next message
Eclipse User
Originally posted by: yann-riyou.gmail.com

Hi,

I'm trying to launch a transformation in a standalone application with
the EMF-VM.
I was wondering about the modelhandlers. The only reference to them I
have seen in the EMF-VM source are commented lines.
Are the modelhandlers still used in the EMF-VM and if yes how do I use
them programmaticaly?

Regards,
Yann
Re: [ATL] EMF-VM and modelhandlers [message #89228 is a reply to message #85280] Thu, 28 August 2008 08:03 Go to previous message
Dennis Wagelaar is currently offline Dennis Wagelaar
Messages: 147
Registered: July 2009
Senior Member
Yann wrote:
> Hi,
>
> I'm trying to launch a transformation in a standalone application with
> the EMF-VM.
> I was wondering about the modelhandlers. The only reference to them I
> have seen in the EMF-VM source are commented lines.
> Are the modelhandlers still used in the EMF-VM and if yes how do I use
> them programmaticaly?
>
> Regards,
> Yann

Hi Yann,

I haven't explicitly tried it, but you should be able to use the EMF-VM
as an almost drop-in replacement for the standard VM, using the AtlVM
interface. This interface is implemented by the AtlEMFSpecificVM class.

Some example code that uses the AtlVM interface can be found here:
http://ssel.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-instantm essenger-config-editor/src/be/ac/vub/uml2cs/instantmessenger /popup/actions/GenerateBuildFileAction.java?view=markup

Note that when you work outside the Eclipse environment, you have to
access the AtlEMFSpecificVM class directly instead of using AtlVM.getVM().

Regards,
Dennis
Previous Topic:Detailed UML to less Detailed UML
Next Topic:[ATL] Abstract rule : do {}
Goto Forum:
  


Current Time: Thu Jul 31 07:46:53 EDT 2014

Powered by FUDForum. Page generated in 0.04099 seconds