Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » JET EXTENSION!
JET EXTENSION! [message #95902] Wed, 05 September 2007 16:32 Go to next message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Hello guys, i
Re: JET EXTENSION! [message #95917 is a reply to message #95902] Wed, 05 September 2007 16:57 Go to previous messageGo 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 #95932 is a reply to message #95917] Wed, 05 September 2007 17: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 #95958 is a reply to message #95932] Thu, 06 September 2007 12:13 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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 #95973 is a reply to message #95958] Thu, 06 September 2007 12:16 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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 #96093 is a reply to message #95973] Thu, 06 September 2007 14:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Hello Paul,

Hehehe i
Re: JET EXTENSION! [message #96109 is a reply to message #96093] Thu, 06 September 2007 15:14 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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 #96285 is a reply to message #96109] Fri, 07 September 2007 14: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 #96346 is a reply to message #96285] Fri, 07 September 2007 16:33 Go to previous message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Never mind, i
Re: JET EXTENSION! [message #609645 is a reply to message #95902] Wed, 05 September 2007 16:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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.
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JET EXTENSION! [message #609646 is a reply to message #95917] Wed, 05 September 2007 17:30 Go to previous 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 #609648 is a reply to message #95932] Thu, 06 September 2007 12:13 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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 #609649 is a reply to message #95958] Thu, 06 September 2007 12:16 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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 #609652 is a reply to message #95973] Thu, 06 September 2007 14:17 Go to previous message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Hello Paul,

Hehehe i
Re: JET EXTENSION! [message #609653 is a reply to message #96093] Thu, 06 September 2007 15:14 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
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 #609664 is a reply to message #96109] Fri, 07 September 2007 14:05 Go to previous 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 #609675 is a reply to message #96285] Fri, 07 September 2007 16:33 Go to previous message
Eclipse UserFriend
Originally posted by: fhenus.hotmail.com

Never mind, i
Previous Topic:[CDO][0.8.0] Streaming
Next Topic:[CDO][0.8.0] Update
Goto Forum:
  


Current Time: Fri Apr 26 02:59:38 GMT 2024

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

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

Back to the top