Menu

[r3156]: / trunk / ch.sahits.codegen.help / html / context / jet.htm  Maximize  Restore  History

Download this file

24 lines (24 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Java Emitter Templates</title>
</head>
<body>
<h1>Java Emitter Templates</h1>
<p>Many projects in the Eclipse world use Java Emitter Templates although most of the time
behind the scene. This is possible since their JETemplates are very specific an not all purpose
as it should be in a generic class generation wizard. Therefore there is no such thing as JETemplate
that can be used to generate any code. Since you want to generate a class you must have some
ideas how the result should look like. Based on this you can write your own template.</p>
<p>JETemplates can be supplied in two ways. You can package your templates into a plug-in of your
own that extends the extension point ch.sahits.codegen.java.jettemplate. This adds your templates
to the template drop down list. This is also the preferred way to distribute your templates. Or you
can simply load the template from some location of your file system.</p>
<h2>How to write your on templates</h2>
<p>A first step can be to inspect the JETemplates that come with this plug-in (<a href="dbbean.javajet">dbbean.javajet</a>). Further reading
you can find in the <a href="../concepts/furtherReading.html">section of the help</a>.
</p>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.