Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:28 Go to next message
khalilojmku  is currently offline khalilojmku
Messages: 5
Registered: November 2010
Junior Member
No Message Body
Re: import class java [message #638717 is a reply to message #638715] Fri, 12 November 2010 10:30 Go to previous messageGo to next message
khalilojmku  is currently offline khalilojmku
Messages: 5
Registered: November 2010
Junior Member
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 13:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6329
Registered: July 2009
Senior Member
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 14:55 Go to previous messageGo to next message
khalilojmku  is currently offline khalilojmku
Messages: 5
Registered: November 2010
Junior Member
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 15:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6329
Registered: July 2009
Senior Member
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 16:13 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 413
Registered: April 2010
Location: Nantes (France)
Senior Member

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 10:10 Go to previous messageGo to next message
khalilojmku  is currently offline khalilojmku
Messages: 5
Registered: November 2010
Junior Member
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 10:20 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 413
Registered: April 2010
Location: Nantes (France)
Senior Member

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 15:30 Go to previous message
khalilojmku  is currently offline khalilojmku
Messages: 5
Registered: November 2010
Junior Member
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: Thu Oct 02 16:42:40 GMT 2014

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

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