Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » Ecore Object transformation
Ecore Object transformation [message #604994] Wed, 30 June 2010 17:33
Mohammed Jelti is currently offline Mohammed JeltiFriend
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:[UML2TOOLS] Qualified Associations
Next Topic:Ecore Object transformation
Goto Forum:
  


Current Time: Mon Dec 22 04:27:21 GMT 2014

Powered by FUDForum. Page generated in 0.01532 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software