Skip to main content

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>(
at tranformationclient.Test.main(
Caused by: java.lang.NullPointerException
at org.eclipse.jet.JET2Platform.<clinit>(
... 2 more

somebody can help me?


Previous Topic:[UML2TOOLS] Qualified Associations
Next Topic:Ecore Object transformation
Goto Forum:

Current Time: Thu Jul 18 03:35:25 GMT 2024

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

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

Back to the top