Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » more jet samples
more jet samples [message #38359] Sun, 30 December 2007 15:30 Go to next message
Eclipse UserFriend
Originally posted by: ymo.mail.google.com

Hi.

Is there a current project using jet in a big fashion so we can see how
the templates are written by jet gurus ?
Re: more jet samples [message #38391 is a reply to message #38359] Thu, 03 January 2008 12:21 Go to previous messageGo to next message
Eclipse UserFriend
Ymo,

EMF uses JET (old JET version 1 to be specific) to generate
Java code, XML and other stuff. Maybe Paul Elder can say
something about projects using JET2.

The EMF templates are located in the
org.eclipse.emf.codegen.ecore plugin in the templates/
directory.

For example Class.javajet is the JET template used to
generate Java interfaces as well as classes (*Impl.java files).
See:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/templates /model/Class.javajet?root=Modeling_Project&view=markup

This is a really big template. For the start I would suggest to
have a look at smaller templates like manifest.mfjet which
produces the manifest file for the model plugin. See:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/templates /model/manifest.mfjet?root=Modeling_Project&view=markup
or plugin.xmljet which produces the plugin.xml file for the model plugin.
See:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/templates /model/plugin.xmljet?root=Modeling_Project&view=markup

All this templates expect a GenModel object as argument.
EMF's Genmodel is located at
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/model/Gen Model.ecore?root=Modeling_Project&view=markup

Hope this helps a bit.

Best Regards,
Reinhold

--
www.emf4net.org


"ymo" <ymo.mail@google.com> wrote in message
news:9f0c5aa636709e6b46b6f0cf8d53f810$1@www.eclipse.org...
> Hi.
>
> Is there a current project using jet in a big fashion so we can see how
> the templates are written by jet gurus ?
>
Re: more jet samples [message #38745 is a reply to message #38391] Mon, 07 January 2008 09:35 Go to previous message
Eclipse UserFriend
The best JET2 examples available right now are those used by JET itself.
Here are the Eclipse CVS repository locations for the projects...

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2t/org .eclipse.jet/transforms/?root=Modeling_Project

There are currently three JET transformation projects there:

org.eclipse.jet.transforms.newproject is fed information from the JET new
project wizard (as an XML document).

org.eclipse.jet.transforms.taglibdoc is used to generated the JET tag
library help from JET's plugin.xml declarations of its tag library. I'm
pretty sure it has some hard coding of locations specific the the standard
JET tag libraries.

org.eclipse.jet.transforms.tagfactory is a new JET transformations that
generates a 'tag factory' class for a tag library (declared in plugin.xml).

Paul


"Reinhold Bihler" <reinhold.bihler@gmx.de> wrote in message
news:flj5iq$jst$1@build.eclipse.org...
> Ymo,
>
> EMF uses JET (old JET version 1 to be specific) to generate
> Java code, XML and other stuff. Maybe Paul Elder can say
> something about projects using JET2.
>
> The EMF templates are located in the
> org.eclipse.emf.codegen.ecore plugin in the templates/
> directory.
>
> For example Class.javajet is the JET template used to
> generate Java interfaces as well as classes (*Impl.java files).
> See:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/templates /model/Class.javajet?root=Modeling_Project&view=markup
>
> This is a really big template. For the start I would suggest to
> have a look at smaller templates like manifest.mfjet which
> produces the manifest file for the model plugin. See:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/templates /model/manifest.mfjet?root=Modeling_Project&view=markup
> or plugin.xmljet which produces the plugin.xml file for the model plugin.
> See:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/templates /model/plugin.xmljet?root=Modeling_Project&view=markup
>
> All this templates expect a GenModel object as argument.
> EMF's Genmodel is located at
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/model/Gen Model.ecore?root=Modeling_Project&view=markup
>
> Hope this helps a bit.
>
> Best Regards,
> Reinhold
>
> --
> www.emf4net.org
>
>
> "ymo" <ymo.mail@google.com> wrote in message
> news:9f0c5aa636709e6b46b6f0cf8d53f810$1@www.eclipse.org...
>> Hi.
>>
>> Is there a current project using jet in a big fashion so we can see how
>> the templates are written by jet gurus ?
>>
>
>
Previous Topic:PDF output (JET vs XSLT)
Next Topic:c:set syntax
Goto Forum:
  


Current Time: Sun Jun 08 09:05:32 EDT 2025

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

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

Back to the top