Ecore Object transformation [message #543833] |
Wed, 30 June 2010 17:33 |
Eclipse User |
|
|
|
Hello everybody,
I'm trying to use JET2Platform.runTransform to transform an object ( how extends EObject) and generate xml files.
My first work was to create a new JET2 project containing a set of templates. i put an id to this project.
Then, i created a new Plugin project where i found an class named Activator. In the constructor of this class, i put this code
profile = new MyProfile();
//this object extends EObject
final JET2Context ctx = new JET2Context(profile);
final IStatus status = JET2Platform.runTransform("xxx.xxxGenerator.esb", ctx, new MyMonitor());
When i excuted this code, i had encounter this error message :
Exception in thread "main" java.lang.ExceptionInInitializerError
at tranformationclient.Activator.<init>(Activator.java:56)
at tranformationclient.Test.main(Test.java:6)
Caused by: java.lang.NullPointerException
at org.eclipse.jet.JET2Platform.<clinit>(JET2Platform.java:77)
... 2 more
somebody can help me?
Thanks.
Moh
|
|
|
Powered by
FUDForum. Page generated in 0.04267 seconds