Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » import class java(how to import a java Class into a M2T)
import class java [message #638715] Fri, 12 November 2010 05:28 Go to next message
Eclipse UserFriend
No Message Body
Re: import class java [message #638717 is a reply to message #638715] Fri, 12 November 2010 05:30 Go to previous messageGo to next message
Eclipse UserFriend
khalilojmku wrote on Fri, 12 November 2010 05:28



how can I import a Java Class into a M2T !! please answer me
Re: import class java [message #638748 is a reply to message #638717] Fri, 12 November 2010 08:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi, to which (Sub)Framework does you question refer to? Xpand Acceleo?. Can you give some more context what you mean with importing?

~Christian
Re: import class java [message #638775 is a reply to message #638715] Fri, 12 November 2010 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Please who know haw to import a java Class into an M2T (acceleo3) !it's urgent !!
Re: import class java [message #638776 is a reply to message #638775] Fri, 12 November 2010 10:00 Go to previous messageGo to next message
Eclipse UserFriend
one more: what do you mean with "import" ???

~Christian
Re: import class java [message #638812 is a reply to message #638715] Fri, 12 November 2010 11:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

If you want to use a Java service in Acceleo 3, you can do something like in this screenshot:

http://img233.imageshack.us/img233/3749/workaround.png

Do not forget to export the package containing your Java class and to use the qualified name of your variable (here java.lang.Double). It is a good practice to create a query for each java service that you want to use like in this screenshot.

You can also find the Acceleo 3 documentation online here and in Eclipse (Help => Help Contents, and look for Acceleo)

Stéphane Bégaudeau, Obeo.
Re: import class java [message #639895 is a reply to message #638812] Thu, 18 November 2010 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Sorry i'am not exelent in English
what do you mean by export the package ! what i have to do
Re: import class java [message #639897 is a reply to message #638715] Thu, 18 November 2010 05:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You can see here a screenshot (the last one) indicating how to export a package (open the manifest file of your project, go to the runtime tab and add the package).

Stephane Begaudeau, Obeo
Re: import class java [message #641233 is a reply to message #639897] Wed, 24 November 2010 10:30 Go to previous message
Eclipse UserFriend
think you sooo much ! I did it finally thinks again !!
Previous Topic:Where did my console go?
Next Topic:[Acceleo/EMF] Problem in Main.java after refactoring one meta-model into two
Goto Forum:
  


Current Time: Sun Aug 31 07:07:23 EDT 2025

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

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

Back to the top