|
|
|
|
|
|
|
|
|
Re: JET EXTENSION! [message #609645 is a reply to message #95902] |
Wed, 05 September 2007 12:57  |
Eclipse User |
|
|
|
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 #609646 is a reply to message #95917] |
Wed, 05 September 2007 13:30  |
Eclipse User |
|
|
|
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 #609648 is a reply to message #95932] |
Thu, 06 September 2007 08:13  |
Eclipse User |
|
|
|
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 #609664 is a reply to message #96109] |
Fri, 07 September 2007 10:05  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.06850 seconds