[JET2] What's the difference betwen JET and JET2? [message #39473] |
Sat, 12 January 2008 09:44  |
Eclipse User |
|
|
|
Hi,
I go through the news in this news group, finding somebody quote JET
,but somebody quote JET2. I am really confused ,wandering what JET2 is. Is
it just the latest version of JET, or absolutely different one from JET. Can
you explain that to me? or give me some material to read?
Thanks.
Michael.
|
|
|
|
Re: [JET2] What's the difference betwen JET and JET2? [message #39995 is a reply to message #39473] |
Tue, 15 January 2008 10:19  |
Eclipse User |
|
|
|
JET2 (aka EMFT JET aka M2T JET) adds the following to JET (aka
org.eclipse.emf.codegen, aka JET1):
* support for tag libraries instead of just scriptlets and expressions
* a concept of an 'transformation', written entirely in JET templates. The
transformation accepts a 'model' as input, and runs one or more templates
that produce output. There are a number of JET2 tags (workspace tags) that
expand templates, and write the results the the Eclipse workspace without
you having to write any Java code against the Eclipse APIs.
Unfortunately in moving from JET (JET1) to JET2, a number of
incompatibilities were introduced:
1) JET1 templates compile to a Java class with a generate method having
signature:
String generate(Object argument)
JET2 templates compile to a Java class with a generate method having
signature:
void generate(JET2Context context, JET2Writer out)
2) While JET1 templates depend only on the Java classes explicitly
referenced in the template, JET2 templates depend on the org.eclipse.jet
plug-in, which, right now has dependencies on the full Eclipse install (i.e.
won't run in RCP, OSGi or just a plain Java JRE.)
You might for the JET faq useful:
http://wiki.eclipse.org/M2T-JET-FAQ
Paul
"Michael" <my25@macs.hw.ac.uk> wrote in message
news:fmajoe$ugd$1@build.eclipse.org...
> Hi,
> I go through the news in this news group, finding somebody quote JET
> ,but somebody quote JET2. I am really confused ,wandering what JET2 is. Is
> it just the latest version of JET, or absolutely different one from JET.
> Can you explain that to me? or give me some material to read?
> Thanks.
> Michael.
>
|
|
|
Powered by
FUDForum. Page generated in 0.06112 seconds