[stringtemplate-interest] IDE support and an issue with a nested list of Java objects
Shane Witbeck
shane at digitalsanctum.com
Sun Jan 14 09:04:04 PST 2007
Two questions:
1. Is there a "File Type" definition or plugin available for StringTemplate
somewhere which gives highlighting support for the IntelliJ IDEA IDE? If
not, which IDE has the best support for working with templates?
2. I'm getting the string representation of a nested object list instead of
the value of the method I'm calling.
Here's the code in question:
$tables:{
public $it.capitalizedName$ get$it.capitalizedName$(int id) throws
DataAccessException {
String sql = "select $it.columns; separator=", ":{ $it.capitalizedName$
}$ from $it.allLowerName$ where ID = ?";
which generates this:
public Attribute getAttribute(int id) throws DataAccessException {
String sql = "select
com.digitalsanctum.tools.DomainGenerator$Column at 125d06e,
com.digitalsanctum.tools.DomainGenerator$Column at 196f4b5 from attribute where
ID = ?";
tables is a List<Table> and columns (List<Column>) is a member variable of a
Table object.
TIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20070114/f0a0dab9/attachment.html
More information about the stringtemplate-interest
mailing list