Skip to main content


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 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:Ecore Object transformation
Next Topic:transform EMF Object withJET2
Goto Forum:
  


Current Time: Wed Apr 24 17:21:49 GMT 2024

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

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

Back to the top