Generating jet1 implementation classes with jet2 [message #59985] |
Mon, 27 April 2009 14:21 |
Eclipse User |
|
|
|
Originally posted by: neko.ticino.com
Hi,
I'm using jet1 to generate java files, now I'm trying jet2 but it does
not generate the implementation classes like in jet1.
This implementation class is taken from an example from the tutorial:
public class TranslationDemoTemplate
{
protected final String NL = System.getProperties().getProperty("line.separator");
protected final String TEXT_1 = "Hello, ";
protected final String TEXT_2 = "!";
public String generate(Object argument)
{
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(TEXT_1);
stringBuffer.append(argument);
stringBuffer.append(TEXT_2);
stringBuffer.append("Hello again!");
return stringBuffer.toString();
}
}
In jet1 there were skeleton files to modify the java output, now if I
want to have this kind of output in jet2 (a java file with the generate
method), do I have to write a template my own or there is another way
to have this result?
Thank you!
Alex
|
|
|
|
Powered by
FUDForum. Page generated in 0.03000 seconds