How do you enable GWT-Ext on the palette?

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 do you enable GWT-Ext on the palette?

Postby jominor » Thu Sep 04, 2008 7:31 am

I don't see a custom palette at all. I'm using Eclipse 3.4 ganymede, gwt designer 5.1, 2.04 of GWT ext, and ext 2.02. Since I didn't do anything to tell gwt designer about gwt-ext, I'm sure I'm missing a step.

What's that step? :-)
jominor
 
Posts: 6
Joined: Fri Jun 15, 2007 4:19 pm

Re: How do you enable GWT-Ext on the palette?

Postby jominor » Thu Sep 04, 2008 7:40 am

Nevermind. I added the module, the jar and restarted eclipse and GWT ext came up.
jominor
 
Posts: 6
Joined: Fri Jun 15, 2007 4:19 pm

Re: How do you enable GWT-Ext on the palette?

Postby Eric Clayberg » Thu Sep 04, 2008 8:06 am

jominor wrote:Nevermind. I added the module, the jar and restarted eclipse and GWT ext came up.

Yes. As long as your project is configured to use GWT-Ext, the GWT-Ext palette should show up automatically.
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: How do you enable GWT-Ext on the palette?

Postby nina » Sun Sep 07, 2008 4:25 pm

As long as your project is configured to use GWT-Ext, the GWT-Ext palette should show up automatically.


Eric, could you please elaborate a little on this for us newbies? What do I do to "configure" GWT designer to use GWT-Ext? And what does jominor mean by "Added the module" exactly? Are these things documented somewhere?

Thanks a lot!
nina
 
Posts: 5
Joined: Mon Sep 01, 2008 5:00 pm

Re: How do you enable GWT-Ext on the palette?

Postby chadlung » Sun Sep 07, 2008 4:47 pm

nina wrote:Eric, could you please elaborate a little on this for us newbies? What do I do to "configure" GWT designer to use GWT-Ext? And what does jominor mean by "Added the module" exactly? Are these things documented somewhere?


Here is what I did to get GWT-Ext working:
1. Open up Eclipse and create a new Java project, select Designer -> GWT -> GWT Java Project
2. Name the project "MyGWTEXT" and hit "next".
3. Check off the "Create GWt Module" and name it "MyGWTEXT" and leave the namespace as it is so I can direct you later for a file modification. Press "Next"
4. Click on the "Libraries" tab and then press the "Add External jars" button and browser to where you've installed GWT-Ext and find the gwtext.jar file, then press "Finish"
5. Go into the com.mycompany.project/public/MyGWTEXT.gwt.xml file and add the following:
Code: Select all
   <!-- Inherit the GWTExt Toolkit library configuration.     -->
   <inherits name="com.gwtext.GwtExt"/>
   <stylesheet src="js/ext/resources/css/ext-all.css" />
   <script src="js/ext/adapter/ext/ext-base.js" />
   <script src="js/ext/ext-all.js" />


So the MyGWTEXT.gwt.xml will look like this:

Code: Select all
<module>
   <inherits name="com.google.gwt.user.User"/>
   <entry-point class="com.mycompany.project.client.MyGWTEXT"/>
   <!-- Inherit the GWTExt Toolkit library configuration.     -->
   <inherits name="com.gwtext.GwtExt"/>
   <stylesheet src="js/ext/resources/css/ext-all.css" />
   <script src="js/ext/adapter/ext/ext-base.js" />
   <script src="js/ext/ext-all.js" />   
</module>


6. Go into the MyGWTEXT.java file and click on "Design". Voila! The GWT-Ext panel should now be available.

Now having said that, I haven't used GST-Ext yet in a project so I'm not sure if I've missed any other configuration. Someone else can reply to this thread if I've neglected anything.

Chad
chadlung
 
Posts: 18
Joined: Fri Aug 29, 2008 8:57 pm

Re: How do you enable GWT-Ext on the palette?

Postby nina » Sun Sep 07, 2008 5:13 pm

Thanks heaps Chad!
I have followed your instructions but get an exception when I click the Design tab:

"com.google.gwt.core.ext.UnableToCompleteException: (see "project_dir/.gwt-logs/.gwt-log" for details.)" + a long stacktrace.

.gwt-log says:

"[ERROR] Unable to open resource: jar:file://home/.../resources/GWT-Ext-2.0.4/gwtext-2.0.4/gwtext.jar!/com/gwtext/GwtExt.gwt.xml"

I've seen in another thread that someone on OSX was having this problem with GWT-Ext as well, so I'm thinking that perhaps the GWT-Ext doesn't work in GWT Designer for OSX and Linux? I'm on Ubuntu, these are the details:

Product: GWT Designer Subscription
Version: 5.1.0.200808291252
Expected: Eclipse 3.3
Actual: Eclipse 3.3.100.v20070530
Actual Eclipse Build Name:
Actual Eclipse Build ID: M20080221-1800
IDE Actual Name: SpringSource Tool Suite
IDE Actual Version: 1.1.0.v200808011800
IDE Actual NL: en_AU
Serial Number: ...
Activation Key: ...
Physical Address: ...
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
GWT Home: /home/.../resources/gwt-linux-1.5.2
Platform Product: SpringSource Tool Suite
Platform Version: 1.1.0.v200808011800
OS Name: Linux
OS Architecture: i386
OS Version: 2.6.24-19-generic

Does anyone know if this is an official bug or is there some trickery required on Linux to get the GWT-Ext panel available on the palette?

Thanks
Nina
nina
 
Posts: 5
Joined: Mon Sep 01, 2008 5:00 pm

Re: How do you enable GWT-Ext on the palette?

Postby chadlung » Sun Sep 07, 2008 6:24 pm

nina wrote:I have followed your instructions but get an exception when I click the Design tab:

"com.google.gwt.core.ext.UnableToCompleteException: (see "project_dir/.gwt-logs/.gwt-log" for details.)" + a long stacktrace.


Hmm, I do recall reading about some issues on OS X in this forum:
http://www.instantiations.com/forum/viewtopic.php?f=11&t=2155

I'm running it on Windows Vista SP1.

Chad
chadlung
 
Posts: 18
Joined: Fri Aug 29, 2008 8:57 pm

Re: How do you enable GWT-Ext on the palette?

Postby chadlung » Sun Sep 07, 2008 7:12 pm

Nina, I noticed your running Eclipse 3.3. Have you tried this with 3.4? I'm not sure it would make any difference but you never know.

Chad
chadlung
 
Posts: 18
Joined: Fri Aug 29, 2008 8:57 pm

Re: How do you enable GWT-Ext on the palette?

Postby Eric Clayberg » Mon Sep 08, 2008 9:58 am

nina wrote:What do I do to "configure" GWT designer to use GWT-Ext?

GWT Designer does not need to be configured to use GWT-Ext.

However, you do need to configure your GWT-Ext project to properly use GWT-Ext as instructed on the GWT-Ext web site. As long as you follow the instructions there, you should have no problems using GWT-Ext with GWT Designer.

If you have any problems, I would suggest starting with our GWT-Ext Example Project which has already been set up per the instructions on the GWT-Ext site.
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: How do you enable GWT-Ext on the palette?

Postby nina » Mon Sep 08, 2008 5:22 pm

I've downloaded GWT-Ext Example Project and imported it into eclipse. When I click on the Design tab of ImageViewer.java, I get the "Exception happened", "Reason: Parse error or internal Designer error" and the "UnableToCompleteException" messages. I've attached the .gwt-log file, I don't know if it's of any help.

I'm not using Eclipse 3.4 yet as it has it's own set of bugs.
Attachments
.gwt-log.zip
This is the .gwt-log generated when I click the Design tab of ImageViewer.java in GWTExt_test
(4.49 KiB) Downloaded 115 times
nina
 
Posts: 5
Joined: Mon Sep 01, 2008 5:00 pm

Re: How do you enable GWT-Ext on the palette?

Postby Eric Clayberg » Mon Sep 08, 2008 6:43 pm

Please post your Eclipse ".log" file as well.
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: How do you enable GWT-Ext on the palette?

Postby nina » Mon Sep 08, 2008 6:44 pm

Eric Clayberg wrote:
As long as you follow the instructions there, you should have no problems using GWT-Ext with GWT Designer.


It would appear that I in fact have set up GWT-Ext correctly (or, well the sample project has), because I can run the sample project. There are no errors and the datepicker and colourpicker comes up just fine. But I can't view any of the 3 ImageViewer classes in the Designer.

If I remove the <inherits name="com.gwtext.GwtExt"/> from ImageViewer.gwt.xml and change the entry-point, I can view ImageViewer2 and ImageViewer3 in Designer (although obviously ImageViewer doesn't compile then).
nina
 
Posts: 5
Joined: Mon Sep 01, 2008 5:00 pm

Re: How do you enable GWT-Ext on the palette?

Postby Eric Clayberg » Mon Sep 08, 2008 6:47 pm

There may be bugs with some of the GWT-Ext widgets in the environment you are running in. They all run fine under Windows, but you never know with Linux or OSX.

Try creating a new EntryPoint or Composite and then try each widget in sequence to see which ones work.

GWT-Ext-Linux.png
GWT-Ext Example Project under Linux
GWT-Ext-Linux.png (138.47 KiB) Viewed 3044 times
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