how to modify templates used by project wizard?

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

how to modify templates used by project wizard?

Postby peterblazejewicz » Mon Feb 25, 2008 11:53 am

hi all,

is there a way to modify templates used by wizards while creating new project/module?
- html template
- .css file template
- generated entry point
I've checked distribution features/plugins content but I cannot find plain text based templates for that,

I've found myself that I'm repeating the same "template"-like patterns with designer:
- add custom .css (most frequently reset-fonts.css from YUI developer library) and/or remove generated .css content
- add strict mode definition in html page
- remove all comments generated in page
- add character set declaration for UTF-8
- remove generated button from entry point
- QuickFix all errors that arise after button is removed from design
- add inherited tag to generated module .gwt.xml file

I think users who use mostly GWT-EXT/MyGWT can find that "missing manual" feature usefull,

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: how to modify templates used by project wizard?

Postby Konstantin.Scheglov » Mon Feb 25, 2008 10:47 pm

Look into GWT Designer plugin, folder templates/model. You can change it partly, but not all changes that you perform manually can be done by changing these templates.

For now the most easy way is probably just create GWT module using Designer and then copy content of "public" folders from some existing and already configured GWT module.

In future we will consider flexible custom templates for GWT modules.
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Re: how to modify templates used by project wizard?

Postby peterblazejewicz » Tue Feb 26, 2008 3:39 am

hi Konstantin,
sorry, I cannot find that, could you post full relative context path? (e.g. /plugins/com.plugin.name_[versionseed] - without verison seed,
I've found tempaltes for swt/swing/rpc already but cannot find relevant for gwt,

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: how to modify templates used by project wizard?

Postby Konstantin.Scheglov » Tue Feb 26, 2008 5:54 am

Something like this: com.swtdesigner.gwt_4.0.0.200802260438.jar/templates/model
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Re: how to modify templates used by project wizard?

Postby peterblazejewicz » Tue Feb 26, 2008 7:37 am

hi Konstantin,

aha, .jar!, ok, I'll try later today,
thanks for tips!
so it means that eventually we could write custom patch for that and include in Eclipse configuration in future,

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: how to modify templates used by project wizard?

Postby Eric Clayberg » Tue Feb 26, 2008 8:21 pm

peterblazejewicz wrote:so it means that eventually we could write custom patch for that and include in Eclipse configuration in future

Presumably, yes.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests