Supress composite default constructor warning

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

Supress composite default constructor warning

Postby art » Thu Nov 22, 2007 7:49 am

Hi there,

Is there anyway to suppress the "Composite ... has no default constructor, so it can not be used with GWT Designer." warning?

I can't find anything in the preferences.

It's very annoying that all classes (without the no arg constructor) that have been created outsite GWT Designer are marked with warnings.

Greetings,
Art
art
 
Posts: 7
Joined: Mon Jun 18, 2007 2:54 pm
Location: The Netherlands

Re: Supress composite default constructor warning

Postby Eric Clayberg » Sat Nov 24, 2007 7:36 pm

art wrote:Is there anyway to suppress the "Composite ... has no default constructor, so it can not be used with GWT Designer." warning?

Any Composite in a GWT Designer project that is missing the default constructor will be flagged with a warning since there is a presumption that you actually intend to use it in your UI design at some point.

To suppress the warning:

art wrote:It's very annoying that all classes (without the no arg constructor) that have been created outsite GWT Designer are marked with warnings.

GWT Designer does not care about Composites in non-GWT Designer projects.

That warning is an important hint that in order to be used as a valid custom widget, the Composite needs to define a default constructor.

Rules for using custom widgets are in the GWT Designer FAQ.
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: Supress composite default constructor warning

Postby art » Mon Nov 26, 2007 1:32 am

Thanks for the reply Eric.

This was the kind of preference I was looking for. I think it's a big plus that v3.01 has this option now.

Art
art
 
Posts: 7
Joined: Mon Jun 18, 2007 2:54 pm
Location: The Netherlands

Re: Supress composite default constructor warning

Postby Eric Clayberg » Mon Nov 26, 2007 2:51 pm

art wrote:This was the kind of preference I was looking for. I think it's a big plus that v3.01 has this option now.

I'm glad you like it. Just be careful as any Composite that you intend to place into the GWT Designer design view must have a default constructor.
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