My generators tend to be very heavily commented, and I try to keep blocks of printed code as small as possible in my code. I like to work up most of the boilerplate stuff in an existing abstract class or classes, and extend those when making my generated class. Small methods help too - your Element and the collection of elements can be probably named by the generator, or perhaps the whole method written as something in an abstract impl class.
The folks at Rocket-GWT have some other ideas, though the project seems to have died (or at least fallen asleep). Their approach seems to include templating, but also better tools to programmaticly write code. Perhaps someone else can pick up their mantle, but at least check out their thoughts: http://code.google.com/p/rocket-gwt/wiki/Generator. -Colin -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
