[SOLVED] Disable/ignore code checks for default constructor

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

[SOLVED] Disable/ignore code checks for default constructor

Postby peterblazejewicz » Tue Feb 19, 2008 6:21 am

Hi all,

I cannot find a way to either disable (a'la checkstyle project or global settigns) or bypass GWT designer warnings about widgets classes that do not have default no-argument constructor,
Composite AboutPanel has no default constructor, so can not be used with GWT Designer.

I have 3rd party jar in source path with widgets not intended to use in Design mode but at runtime, That's 3rd party .jar so I cannot modify sources (which would also make no sense becuase of widgets design similiar to dependency injection),
I think that feature (code checks) is built into GWT Designer plugin itself, am I correct?
That's rather cosmetic thing becuase that are just warnings

thanks,
regards,
Peter
Last edited by peterblazejewicz on Tue Feb 19, 2008 11:28 am, edited 1 time in total.
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: Disable/ignore code checks for default constructor

Postby Eric Clayberg » Tue Feb 19, 2008 7:26 am

peterblazejewicz wrote:I cannot find a way to either disable (a'la checkstyle project or global settigns) or bypass GWT designer warnings about widgets classes that do not have default no-argument constructor,
Composite AboutPanel has no default constructor, so can not be used with GWT Designer.

I have 3rd party jar in source path with widgets not intended to use in Design mode but at runtime, That's 3rd party .jar so I cannot modify sources (which would also make no sense becuase of widgets design similiar to dependency injection),
I think that feature (code checks) is built into GWT Designer plugin itself, am I correct?
That's rather cosmetic thing becuase that are just warnings

Did you try turning off the Designer > GWT > Check for Composite default constructor preference?
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

Re: Disable/ignore code checks for default constructor

Postby peterblazejewicz » Tue Feb 19, 2008 11:27 am

hi Eric,

o yeah, you're correct as usuall :)
I could bet that I'd checked every option, my miss ;(
#SOLVED#

just of side note: can it be considered for some next major GWT Designer revision (e.g. that one which will be released after GWT 1.5 is out) to move some option from global properties to per-project properties window? It could include e.g. that one in subject here, another one is generating RPC stub classes, etc.
There are also other things I would add to such wish-thread if one exists,

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

Re: Disable/ignore code checks for default constructor

Postby Eric Clayberg » Wed Feb 20, 2008 5:54 am

Sounds useful, but why project level as opposed to module or file level?
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

Re: [SOLVED] Disable/ignore code checks for default constructor

Postby peterblazejewicz » Wed Feb 20, 2008 12:08 pm

hi Eric,

Whatever way you implement that it will be welcome I think, Everything that made GWT Plugin similiar to existig plugins in terms of flexiblity of usablity (well, from coder point of view) will be warm welcomed I guess,
I have a short list of such things that could be added in short/long terms,

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

Re: [SOLVED] Disable/ignore code checks for default constructor

Postby Eric Clayberg » Wed Feb 20, 2008 5:32 pm

OK. Sounds good.
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