Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to customize EMF JetTemplates
How to customize EMF JetTemplates [message #721621] Fri, 02 September 2011 10:47 Go to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi all,

I want to modify the code that is generated by EMF. In more detail I want to motifz the ItemProviders of the edit plugin. To do so I planned to customize the JET templates. All I could find about that is this: http://wiki.eclipse.org/EMF/ExtendingCodeGeneration . But this does not seem to do the thing I want. Is there a way to override definition's of EMF's Jet Templates? Is there any documentation on this?

Thanks,

Ralph
Re: How to customize EMF JetTemplates [message #721695 is a reply to message #721621] Fri, 02 September 2011 15:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ralph,<br>
<blockquote><a
href="http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_use_Dynamic_Templates.3F"><span
class="tocnumber">2.31</span> <span class="toctext">How do I
use Dynamic Templates?</span></a><br>
</blockquote>
<br>
On 02/09/2011 3:47 AM, ralph. wrote:
<blockquote cite="mid:j3qbig$hri$1@news.eclipse.org" type="cite">Hi
all,
<br>
<br>
I want to modify the code that is generated by EMF. In more detail
I want to motifz the ItemProviders of the edit plugin. To do so I
planned to customize the JET templates. All I could find about
that is this: <a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/EMF/ExtendingCodeGeneration">http://wiki.eclipse.org/EMF/ExtendingCodeGeneration</a>
. But this does not seem to do the thing I want. Is there a way to
override definition's of EMF's Jet Templates? Is there any
documentation on this?
<br>
<br>
Thanks,
<br>
<br>
Ralph
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to customize EMF JetTemplates [message #722299 is a reply to message #721695] Mon, 05 September 2011 09:30 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

I also found out that templates that have an include statement can get only this exchanged if one defines only the file of the include. This works very fine. Thank you! I also want to extend the generated Factory a bit. Here it seems like I have to take the whole template Sad

Thank you a lot!!!!

Ralph
Previous Topic:Where to download EMF ODA builds
Next Topic:Setting Lazy = true?
Goto Forum:
  


Current Time: Fri Apr 26 08:14:50 GMT 2024

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

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

Back to the top