Dropping Composite into Module like the Demo?

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

Dropping Composite into Module like the Demo?

Postby smoffatt » Tue Nov 21, 2006 5:57 pm

Watch the demo with wonder and awe.
Downloaded the latest GWT Designer (free trial).
Installed it in a completely clean Eclipse env (no other plugins, v3.2, latest GWT jars on the class path)

Followed the sequence in the demo where a new MyComposite was created, the user clicked Choose Widget, selected their MyComposite and clicked back on the main drawing screen (into ImageViewer I believe) and was able to drop the custom composite in.

When I follow the exact steps, I do not get the indicator that there is a widget ready to be dropped -- and then nothing happened.
smoffatt
 
Posts: 4
Joined: Tue Nov 21, 2006 5:48 pm

Re: Dropping Composite into Module like the Demo?

Postby Eric Clayberg » Tue Nov 21, 2006 6:58 pm

I just tried it and it worked fine on my end.

Can you post the code for the Composite that you created?

What version of GWT and GWT Designer are you using?
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

Postby smoffatt » Tue Nov 21, 2006 10:24 pm

Eric,

Environment:
GWT version: 1.2.11
GWT Designer installer: GWTDesigner_v1.0.1_win32_x86.exe

I followed your steps in the Demo and GWT Designer created this code:

Code: Select all
package com.mycompany.project.client;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.TextBox;

public class MyComposite extends Composite {

   public MyComposite() {

      final HorizontalPanel horizontalPanel = new HorizontalPanel();
      initWidget(horizontalPanel);

      final TextBox textBox = new TextBox();
      horizontalPanel.add(textBox);

      final Button browseButton = new Button();
      horizontalPanel.add(browseButton);
      browseButton.setText("Browse");
   }

}
smoffatt
 
Posts: 4
Joined: Tue Nov 21, 2006 5:48 pm

Postby smoffatt » Tue Nov 21, 2006 10:33 pm

OK,

Shutdown eclipse, rebooted, deleted old test project, created new GWT project, created default ImageViewer, created MyComposite, selected Choose Widget, dropped into ImageViewer -- no problem. So, never mind, I guess.

I wonder if my system was hosed with a memory leak.

What is the recommended memory setting for eclipse while running GWT Designer?
smoffatt
 
Posts: 4
Joined: Tue Nov 21, 2006 5:48 pm

Postby Eric Clayberg » Wed Nov 22, 2006 4:33 am

There are no recommended memory settings. GWT Designer will run fine in Eclipse at its default settings.

I tried your example and it worked fine on my end.

When you created your Composite, did you save it? Had Eclipse compiled it yet? If the class wasn't compiled at the time, you would not be able to place it with Choose Widget.
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

Postby smoffatt » Wed Nov 22, 2006 8:02 am

Working fine on my end now too.
My composite was probably not compiled and so not available to drop in.

Thanks for the prompt responses - very good to see. Will be purchasing the full version shortly
smoffatt
 
Posts: 4
Joined: Tue Nov 21, 2006 5:48 pm


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests