Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » [ATL] Cannot import EMFTVM
[ATL] Cannot import EMFTVM [message #1034299] Fri, 05 April 2013 09:02 Go to next message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
Registered: June 2012
Member
Hi members,

I'm currently trying to switch from the 'normal' ATL compiler to EMFTVM, as it seems to be much faster and gives clearer error hints.
My problem: I cannot import the stuff suggested here. EmftvmFactory, for example, is not available in my Juno's type browser (CTRL+SHIFT+T), although version 3.3.1 of the ATL SDK is installed and
-- @atlcompiler emftvm

in the ATL file works no problem.
Can you give me any hint what I am missing? Thanks!
Re: [ATL] Cannot import EMFTVM [message #1035817 is a reply to message #1034299] Sun, 07 April 2013 13:17 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Op 05-04-13 11:02, Gunnar Arndt schreef:
> Hi members,
>
> I'm currently trying to switch from the 'normal' ATL compiler to EMFTVM, as it
> seems to be much faster and gives clearer error hints.
> My problem: I cannot import the stuff suggested
> http://wiki.eclipse.org/ATL/EMFTVM#API. EmftvmFactory, for example, is not
> available in my Juno's type browser (CTRL+SHIFT+T), although version 3.3.1 of
> the ATL SDK is installed and -- @atlcompiler emftvm
>
> in the ATL file works no problem.
> Can you give me any hint what I am missing? Thanks!

Did you add the org.eclipse.m2m.atl.emftvm plug-in to your dependencies? Are
you writing an Eclipse plug-in or a standalone Java application? If the
latter, please also check http://wiki.eclipse.org/ATL/EMFTVM#Standalone_use

Kind regards,
Dennis


Cheers,
Dennis
Re: [ATL] Cannot import EMFTVM [message #1036302 is a reply to message #1034299] Mon, 08 April 2013 07:53 Go to previous messageGo to next message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
Registered: June 2012
Member
Dennis, thanks again. The plug-in org.eclipse.m2m.atl.emftvm is not available in my target platform or type browser. I have installed the ATL SDK from http://download.eclipse.org/releases/juno in both Eclipse itself and the target platform.
Do I need anything else in order to use EMFTVM in a plug-in (it is not standalone)? As mentioned before, the EMFTVM compiler is available and works fine.
Re: [ATL] Cannot import EMFTVM [message #1036705 is a reply to message #1036302] Mon, 08 April 2013 18:02 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Op 08-04-13 09:53, Gunnar Arndt schreef:
> Dennis, thanks again. The plug-in org.eclipse.m2m.atl.emftvm is not available
> in my target platform or type browser. I have installed the ATL SDK from
> http://download.eclipse.org/releases/juno in both Eclipse itself and the
> target platform. Do I need anything else in order to use EMFTVM in a plug-in
> (it is not standalone)? As mentioned before, the EMFTVM compiler is available
> and works fine.

As you've got EMFTVM working at design-time, I'll assume you've got the EMFTVM
feature and all its plug-ins installed correctly. That does not make it
available to your own plug-in, however. Eclipse plug-ins (or OSGi bundles in
general) require you to explicitly list the dependencies.

You need to specify "org.eclipse.m2m.atl.emftvm" as a dependency in your
plug-in's MANIFEST.MF. Example:

Require-Bundle: org.eclipse.core.runtime,
org.eclipse.m2m.atl.common,
org.eclipse.m2m.atl.emftvm

Eclipse also provides a graphical editor for the MANIFEST.MF file, where you
can add the required plug-ins under the "Dependencies" tab.

Kind regards,
Dennis


Cheers,
Dennis
Re: [ATL] Cannot import EMFTVM [message #1037158 is a reply to message #1034299] Tue, 09 April 2013 08:23 Go to previous messageGo to next message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
Registered: June 2012
Member
Dennis, thanks once more. I know that I have to add the plug-ins, but they are not available. See the the screenshot of the available plug-ins http://i47.tinypic.com/mw5oi9.png
As you can see, ATL SDK 3.3.1 is installed. Are you sure that I don't need anything else?
Re: [ATL] Cannot import EMFTVM [message #1037610 is a reply to message #1037158] Tue, 09 April 2013 19:49 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Op 09-04-13 10:23, Gunnar Arndt schreef:
> Dennis, thanks once more. I know that I have to add the plug-ins, but they are
> not available. See the the screenshot of the available plug-ins As you can
> see, ATL SDK 3.3.1 is installed. Are you sure that I don't need anything else?

I think I know what might have caused confusion:
http://wiki.eclipse.org/ATL/EMFTVM#Installation lists two installation sources
for EMFTVM, but both sources contain EMFTVM **as a separate feature** and not
as part of the ATL SDK.

Dennis


Cheers,
Dennis
Re: [ATL] Cannot import EMFTVM [message #1037972 is a reply to message #1034299] Wed, 10 April 2013 08:35 Go to previous messageGo to next message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
Registered: June 2012
Member
Dennis, I had indeed missed that and have installed the EMFTVM feature.
http://i49.tinypic.com/s2fdxi.png
But the bundles still are not available, although the EMFTVM jars are in my Eclipse's plugins folder.

[UPDATE] I've added the plug-ins to the target platform, they seem to be available now.

[Updated on: Wed, 10 April 2013 09:11]

Report message to a moderator

Re: [ATL] Cannot import EMFTVM [message #1038141 is a reply to message #1034299] Wed, 10 April 2013 13:04 Go to previous messageGo to next message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
Registered: June 2012
Member
Dennis, thanks to your help, I finally got it working. One problem remains: EMF2.5 and, thus, Eclipse core runtime 3.5 is required, but I use it in a project based on Eclipse 3.4. Guess I'll have to stick to the standard vm Sad
Re: [ATL] Cannot import EMFTVM [message #1038367 is a reply to message #1038141] Wed, 10 April 2013 19:47 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Op 10-04-13 15:04, Gunnar Arndt schreef:
> Dennis, thanks to your help, I finally got it working. One problem remains:
> EMF2.5 and, thus, Eclipse core runtime 3.5 is required, but I use it in a
> project based on Eclipse 3.4. Guess I'll have to stick to the standard vm :(

I just regenerated EMFTVM's metamodel with EMF 2.4 compatibility set. Turns
out it makes no difference, and the exact same code comes out. I will just
reduce the required version down from 2.5 to 2.4. New snapshot release coming
up...

Dennis


Cheers,
Dennis
Re: [ATL] Cannot import EMFTVM [message #1038715 is a reply to message #1034299] Thu, 11 April 2013 08:09 Go to previous message
Gunnar Arndt is currently offline Gunnar ArndtFriend
Messages: 82
Registered: June 2012
Member
You're the Greatest!
Previous Topic:Rule transforming one element to several elements
Next Topic:UML profile as metamodel in standalone
Goto Forum:
  


Current Time: Fri Apr 19 05:27:15 GMT 2024

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

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

Back to the top