[stringtemplate-interest] Tabular rendering ?
Daniel Kasmeroglu
Daniel.Kasmeroglu at Kasisoft.net
Tue Jan 18 06:34:37 PST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
I'm actually experimenting with ST4 and I'm looking for a specific way to render values.
Let's say you've got the following input:
(SeatBeltManager,sbmanager),(List,seats),(ARElement,monitoringdevice)
The generated code should look like this (Java):
private SeatBeltManager sbmanager;
private List seats;
private ARElement monitoringdevice;
As you can see the names are aligned in one column. I already know how to generate
this code (I've simply created a custom renderer which allows to get a spacing
attribute so the rendering will fill up the strings with whitespace).
Nevertheless I personally would prefer a more elegant solution, so I would like to know
if someone knows how to realise this or if there's some kind of "tabular" rendering
in ST4 ?
- --
Best regards
Daniel Kasmeroglu (Dipl.-Inform.)
http://www.kasisoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNNaT9AAoJEINC028ZZaYUfdAH/i38HtGbwBF2K4ZaHezOmgZX
zOeLsICFi31P4TVKMJuePhdNjCiRgtAm+WXZa+5syBnJF4iS3/a4Y/4zOduDv7y8
xS+nIpbF/ywkjWH+0gXcKBJNYfSlNVIJWQrKNsks32fsJP+LwTMS+zPN4oQrVGju
+ufkRrWmU2n4J3bz9cMB3ddQvSYo2gWCL3CPwwdzh7UE3RCffHugVGQVgRi8enol
NNq1Ho8AJF/rwGwhdc6t4xsIFUc7+9Ps809mtj/abl0Ehdwa9vBSq3lgCmY2GQxG
2SYtlTEU17JqsjSWMjVVj216ft3eQtZimG83xe6Jhn6anU62d6RWveaF7O7ElY4=
=WGzq
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Daniel_Kasmeroglu.vcf
Type: text/x-vcard
Size: 247 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110118/03f498c3/attachment.vcf
More information about the stringtemplate-interest
mailing list