|
Re: [ATL] Cannot import EMFTVM [message #1035817 is a reply to message #1034299] |
Sun, 07 April 2013 13:17 |
|
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 #1036705 is a reply to message #1036302] |
Mon, 08 April 2013 18:02 |
|
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 #1037610 is a reply to message #1037158] |
Tue, 09 April 2013 19:49 |
|
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 #1038367 is a reply to message #1038141] |
Wed, 10 April 2013 19:47 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04068 seconds