How to configure Ext GWT with GWT Designer?

2019-03-14 07:40发布

I have problem with configuration GXT with GWT Designer. I have all new releases of Eclipse, GWT plugin and GXT and cannot configure GXT to work with GWT Designer. I setup my project so that I can compile my GXT project and run it in browser. However I can't design in GWT Designer. I don't see any GXT widget in GWT Designer. All forums reffer to Google Web Toolkit -> Configure for using Ext-GWT (GXT) but I don't have this option. I have done all steps defined in setup.txt of GXT. The only thing that is not working is GWT designer do not see GXT widgets.

Regrads,

7条回答
贪生不怕死
2楼-- · 2019-03-14 08:09

that happened to me too. I had to install WindowBuilder Pro from the update site (you can found it here) and after that the "Google Web Toolkit > Configure for using Ext GWT (GXT)" option appeared.

查看更多
狗以群分
3楼-- · 2019-03-14 08:12

Support for 3rd party components like GXT and SmartGWT is only available in the full version of GWT Designer available here...

http://code.google.com/webtoolkit/tools/download-gwtdesigner.html

Install the full version and then follow the instructions here...

http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html

查看更多
一纸荒年 Trace。
4楼-- · 2019-03-14 08:13

I had this problem. I solved by installing:

(If you are using Eclipse Indigo) http://dl.google.com/eclipse/inst/d2gwt/latest/3.7

Just check for the version you have. That should do the trick.

查看更多
太酷不给撩
5楼-- · 2019-03-14 08:13
  1. "select your GWT module file and right-click to select the Google Web Toolkit > Configure for using Ext GWT (GXT)" http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html

  2. Read setup.txt in ext-gwt zip:

STEP 1 -> Create a Google Web Application Project project within Eclipse.

Copy the contents of the /resources folder in the download to a {foldername} location within your war folder. Substitute {foldername} with the name of the folder you've created for resources within your war folder.

STEP 3 -> Add the following stylesheet to your host page.

STEP 3b -> If you are using Charts, add the following script to your host page.

STEP 4 -> Add the following entry to you projects module xml file.

STEP 5 -> Eclipse Setup (should be similar for other development environments) These instructions assume you have a existing project and launch configuration.

  1. Add gxt.jar to the project. a. Right click on project name in 'Package Explorer'. b. Select 'Properties' from content menu. c. Select 'Java Build Path'. d. Select 'Libraries' tab. e. Add the gxt.jar either with 'Add JARs...' or 'Add External JARs...'.

  2. Add GXT jar to launch configuration. a. Choose Run / Open Run Dialog. b. Select your appropriate launch configuration under 'Java Application'. c. Select the 'Classpath' tab. d. Add the gxt.jar to the classpath.

查看更多
Animai°情兽
6楼-- · 2019-03-14 08:14

I just had the same problem. The only way I got it working is this:

So instead, I created a new Project, using: New Project > WindowBuilder/GWT Designer/Model/GWT Java Project:

  • I went through the Wizard, clicked Finish, and then it asked me about a GXT installation. The important thing is: You must select this now, I don't see any way to add this later. So navigate to a GXT installation folder. In that folder, I had to rename my "gxt-*.jar" to "gxt.jar" first, otherwise it couldn't be found (!).
  • Now, when opening a Java file using "Open With > GWT Designer", and selecting the Design view tab at the bottom of the editor - voila, the GXT menus appear.
查看更多
干净又极端
7楼-- · 2019-03-14 08:21

I see this is an old article, but might still help people with the same problem. If you right click on your gwt.xml file, the options are visible, if you click on your project, the options are not visible. That's the problem I was having.

查看更多
登录 后发表回答