|
| Re: Java Code Generation with MoDisco on Helios M7 [message #535087 is a reply to message #534959] |
Fri, 21 May 2010 05:29   |
Fabien Giquel Messages: 134 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
----------------------------------------------------
|
|
|
|
|
| Re: Java Code Generation with MoDisco on Helios M7 [message #538508 is a reply to message #538364] |
Mon, 07 June 2010 15:28   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi Chloé,
When launching your Eclipse Application at first time, a workspace has been created on your file system.
Could you look at the error messages in .log file in the .metadata subfolder of this workspace. I suppose you will find some "ClassNotFoundException" which will help you to understand.
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
|
| Re: Java Code Generation with MoDisco on Helios M7 [message #538797 is a reply to message #538637] |
Tue, 08 June 2010 12:11   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi Chloé,
here are the steps i exactly follow :
- create "HelloWorld" plugin using the eclipse wizard
- adding dependencies in Manifest.MF to
"org.eclipse.emf.ecore"
"org.eclipse.gmt.modisco.java"
"org.eclipse.gmt.modisco.java.generation"
- take the body of Konstantin testMakeClass() method, and put it as body
of SampleAction#run(IAction action), without any other modification.
May be you have removed the inheritance "implements
IWorkbenchWindowActionDelegate" in SampleAction...?
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
|
|
|
| Re: Java Code Generation with MoDisco on Helios M7 [message #575163 is a reply to message #575148] |
Mon, 07 June 2010 15:28   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi Chloé,
When launching your Eclipse Application at first time, a workspace has been created on your file system.
Could you look at the error messages in .log file in the .metadata subfolder of this workspace. I suppose you will find some "ClassNotFoundException" which will help you to understand.
--
----------------------------------------------------
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
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
|
| Re: Java Code Generation with MoDisco on Helios M7 [message #575205 is a reply to message #538637] |
Tue, 08 June 2010 12:11   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi Chloé,
here are the steps i exactly follow :
- create "HelloWorld" plugin using the eclipse wizard
- adding dependencies in Manifest.MF to
"org.eclipse.emf.ecore"
"org.eclipse.gmt.modisco.java"
"org.eclipse.gmt.modisco.java.generation"
- take the body of Konstantin testMakeClass() method, and put it as body
of SampleAction#run(IAction action), without any other modification.
May be you have removed the inheritance "implements
IWorkbenchWindowActionDelegate" in SampleAction...?
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
|
Powered by
FUDForum. Page generated in 0.06819 seconds