Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » Ecore Object transformation(How to run JET2Platform.runTransform with an EObject)
Ecore Object transformation [message #543833] Wed, 30 June 2010 13:33
Mohammed Jelti is currently offline Mohammed Jelti
Messages: 8
Registered: May 2010
Junior Member
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
Previous Topic:Ecore Object transformation
Next Topic:transform EMF Object withJET2
Goto Forum:
  


Current Time: Fri Apr 18 17:04:17 EDT 2014

Powered by FUDForum. Page generated in 0.02071 seconds