Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Re: JET EXTENSION!
Re: JET EXTENSION! [message #32478] Wed, 05 September 2007 12:57 Go to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Rafael,

I'll redirect your question to the M2T newsgroup which I've added to the
"to" list of my reply (so there's no need to repost the question).


Rafael Ribeiro wrote:
> Hello guys, i´ve trying to find material about JET Extension Points but its
> being really hard to find it. Got me questioning if anyone its using this
> wonderful feature. :D
>
> What i have to ask its this. I know that the JET engine translates text
> templates to a Java class that generates the real output.
>
> What i want to know its that there is a way to extend the code that the JET
> engine generates. Putting things simple, i want to put a tag in a template
> that will generate some code on the Java class. EX: A tag like
> <custom:Property name="FolderPath" type="String"> and when the JET compiles
> the template the JAVA class will have a attribute FolderPath, and with
> getter and setters.
>
> Until now i just found custom tags that transform the resulting
> transformation, not the java class itself. Can this be done?
>
> Thanks anyway, cya.
>
>
>
Re: JET EXTENSION! [message #32513 is a reply to message #32478] Wed, 05 September 2007 13:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Being diging around, and i saw some people asking abount custom directives.
Does the JET engine already support this?

I
Re: JET EXTENSION! [message #32651 is a reply to message #32513] Thu, 06 September 2007 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Rafael:

JET permits you to define "custom tags" (XML tags that are interpreted by
the engine at runtime). You can get some details from the JET FAQ:


"Rafael Ribeiro" <fhenus@hotmail.com> wrote in message
news:fbmp4e$i9p$1@build.eclipse.org...
> Being diging around, and i saw some people asking abount custom
> directives. Does the JET engine already support this?
>
> I
Re: JET EXTENSION! [message #32686 is a reply to message #32651] Thu, 06 September 2007 08:16 Go to previous messageGo to next message
Eclipse UserFriend
Hmm... lets try that again..

Rafael:

JET permits you to define "custom tags" (XML tags that are interpreted by
the engine at runtime). You can get some details from the JET FAQ:

http://wiki.eclipse.org/JET_FAQ_How_do_I_create_custom_tag%3 F

JET does not permit you to defined custom directives <%@xxx %>, which are
interpreted by the JET compiler at compile time. But, so far, custom tags
have been all that anyone has needed.

Also, before you embark on creating custom tags, take a look at the supplied
library.

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. jet.doc/references/taglibs/index.xhtml

Paul
Re: JET EXTENSION! [message #32956 is a reply to message #32686] Thu, 06 September 2007 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Hello Paul,

Hehehe i
Re: JET EXTENSION! [message #33132 is a reply to message #32956] Thu, 06 September 2007 11:14 Go to previous messageGo to next message
Eclipse UserFriend
Rafael:

Keep me posted on your progress. Maybe this is something you can contribute
back to the community!

Paul

"Rafael Ribeiro" <fhenus@hotmail.com> wrote in message
news:fbp259$8lv$1@build.eclipse.org...
> Hello Paul,
>
> Hehehe i
Re: JET EXTENSION! [message #33341 is a reply to message #33132] Fri, 07 September 2007 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Hi Paul, i just finished the implementation. The problem now its to run the
JET compilation without building a plugin. As i now JET only runs on top of
eclipse or on a headless eclipse. Is there another way to run only the
compilation?

I want to do a simple unit test to my code that just receives the template
path, or stream, compile it and get the result. Could you help me with that?

PS: Sorry if this are really newbie questions... its that i
Re: JET EXTENSION! [message #33549 is a reply to message #33341] Fri, 07 September 2007 12:33 Go to previous message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Never mind, i
Previous Topic:[JET2] Struggling with iterate command
Next Topic:How to abort a transformation from a custom tag?
Goto Forum:
  


Current Time: Wed Apr 16 15:05:21 EDT 2025

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

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

Back to the top