|
Re: Java Code Generation with MoDisco on Helios M7 [message #575119 is a reply to message #575091] |
Fri, 21 May 2010 09:29 |
Fabien Giquel Messages: 147 Registered: July 2009 |
Senior Member |
|
|
Hi Konstantin,
the problem comes from the generation calling context : creating a "java project" and running a class as "java application" does not work.
I have created a thread on M2T acceleo forum to kwow if it is an expected limit or a bug ( http://www.eclipse.org/forums/index.php?t=msg&goto=53508 0)
I dont know if you are familiar with plugin development. Anyway, here is the way to have your code working :
- create a "Plugin project" rather than a "Java Project"
- adding plugins dependencies to org.eclipse.gmt.modisco.java.generation, org.eclipse.emf.ecore,
org.eclipse.gmt.modisco.java rather than setting directly the classpath
- include your testMakeClass() code in some ui action which will be launched from another eclipse workbench (e.g. you may use the "hello world" plugin creation wizard and modify the SampleAction class).
- running an "Eclipse Application" and testing the new action.
Regards,
--
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
rue Nina Simone
44000 NANTES
----------------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.02650 seconds