Incomplete visualization of the source code

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

Incomplete visualization of the source code

Postby stsch77 » Fri Apr 24, 2009 1:38 am

I am using GWT 1.6.4 and the most recent version of GWT Designer (7.0).

This is a snippet from the entry point class generated by GWT's webAppCreator-script:

public void onModuleLoad() {
final Button sendButton = new Button("Send");
final TextBox nameField = new TextBox();
nameField.setText("GWT User");

For any reason these 2 widgets are not visualized when I go to the GWT Designer's Design tab (see screenshot).
screen.gif (7.57 KiB) Viewed 355 times
Posts: 19
Joined: Fri Feb 27, 2009 10:31 am

Re: Incomplete visualization of the source code

Postby Eric Clayberg » Sat Apr 25, 2009 5:33 am

GWT Designer only allows one root GUI object per class.

The code generated by the Google plugin is not very well factored, and has two root GUI objects... the rootpanel and the dialogbox.

A the moment, GWT Designer just chooses the root with the most children (in this case the dialog box).

We will probably change this to always give the rootpanel precedence.

The correct way to handle this example is to refactor it and split the dialogbox out into its own class.

Note that you can use code hiding tags to hide the dialogbox and its children. That will cause the rootpanel to appear in the design view.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
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 2 guests