Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » how to use jet2 in standalone eclipse app
how to use jet2 in standalone eclipse app [message #1114095] Sun, 22 September 2013 02:36 Go to next message
xiao yu zhou is currently offline xiao yu zhou
Messages: 13
Registered: August 2013
Junior Member
Hi gays
Now I want to use jet2 in my plugin,but I can not find any tutorial or any docs to instruct me to achieve this after searched the internet.
So anyone know where i can find help? I will very appreciate your help
Re: how to use jet2 in standalone eclipse app [message #1124458 is a reply to message #1114095] Thu, 03 October 2013 10:57 Go to previous message
Chris Gerken is currently offline Chris Gerken
Messages: 2
Registered: October 2013
Junior Member
This is the API call to apply a JET transform to a model:

IStatus status =
JET2Platform.runTransformOnString("xformId", model, aNullProgressMonitor());

where model is a String variable containing an XML document. There are other methods that can take other models. You'll need this, too:

import org.eclipse.jet.JET2Platform;
Previous Topic:JET2 Auto-Import Tag Library
Next Topic:Acceleo UI Launcher project: how to display a dialog
Goto Forum:
  


Current Time: Mon Oct 07 09:28:47 EDT 2013

Powered by FUDForum. Page generated in 0.01460 seconds