Using Epsilon in Java [message #719551] |
Sat, 27 August 2011 14:54  |
Eclipse User |
|
|
|
I tried to modify the the example , "Use Epsilon in standalone Java applications" ;and I have two problems with getting it to work :
1) when using 'generate' command in the egl script,an exception is thrown :
Exception in thread "main" Method 'generate' not found (C:\Users\test\org.eclipse.epsilon.examples.standalone\src\org\eclipse\epsilon\examples\standalone\egl\Demo.egl@4:10)
at org.eclipse.epsilon.egl.internal.EglPreprocessorModule.execute(EglPreprocessorModule.java:70)
at org.eclipse.epsilon.egl.internal.EglModule.execute(EglModule.java:148)
at org.eclipse.epsilon.egl.internal.EglModule.execute(EglModule.java:158)
at org.eclipse.epsilon.egl.EglTemplate.process(EglTemplate.java:69)
at org.eclipse.epsilon.egl.EglTemplateFactoryModuleAdapter.execute(EglTemplateFactoryModuleAdapter.java:63)
at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.execute(EpsilonStandaloneExample.java:67)
at org.eclipse.epsilon.examples.standalone.EpsilonStandaloneExample.execute(EpsilonStandaloneExample.java:60)
at org.eclipse.epsilon.examples.standalone.egl.EglStandaloneExample.main(EglStandaloneExample.java:34)
2) Using templateFactory to load other templates does not seem to work.
|
|
|
|
|
|
|
Re: Using Epsilon in Java [message #723400 is a reply to message #723095] |
Thu, 08 September 2011 09:22  |
Eclipse User |
|
|
|
Horacio wrote on Wed, 07 September 2011 11:37Louis,
The attached files are not a complete example, only the epsilon standalone implementations. I would love to discuss my implementation of the standalone "executors" with you to come up with improved versions and provided them to the community. I can send them to you or you can get them from the svn. We can discuss them via email.
Cheers,
Horacio
Horacio,
That'd be great, thanks very much! If you would like to pursue this, please consider preparing a patch for the standalone example plugin. (We have to follow a somewhat strict process for incorporating contributions from collaborators, and a patch would help to get this started).
I had a quick look at your code, and it seems great. One small tip: rather than create an EMF model using StringProperties, you might prefer org.eclipse.epsilon.emc.emf.EmfModelFactory.getInstance().createEmfModel(...). That way, you're protected from any changes that are made to the keys and values used in the StringProperties. (As we discussed on the other thread, this do sometimes change).
Hope that helps,
Louis.
|
|
|
Powered by
FUDForum. Page generated in 0.08972 seconds