如何使用 GWT Designer 配置 Ext GWT?
我在使用 GWT Designer 配置 GXT 时遇到问题。我拥有 Eclipse、GWT 插件和 GXT 的所有新版本,但无法配置 GXT 以与 GWT Designer 一起使用。我设置了我的项目,以便可以编译我的 GXT 项目并在浏览器中运行它。 但是我无法在 GWT Designer 中进行设计。我在 GWT Designer 中没有看到任何 GXT 小部件。 所有论坛均引用 Google Web Toolkit ->配置为使用 Ext-GWT (GXT),但我没有此选项。 我已经完成了 GXT 的 setup.txt 中定义的所有步骤。 唯一不起作用的是 GWT 设计器看不到 GXT 小部件。
注册,
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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
各位:
最新版本的 Windowbuilder 似乎不支持 GXT 3。时期。该线程中给出的所有指令都适用于 GXT 2,但 GXT 3 存在根本差异(一方面是不同的样式机制!),Windowbuilder 似乎无法处理。
这是 Windowbuilder 中需要修复的错误。
Folks:
It simply appears that GXT 3 is not supported in the latest version of Windowbuilder. Period. All the instructions given in this thread work well for GXT 2, but GXT 3 has radical differences (different styling mechanisms, for one thing!) that Windowbuilder cannot seem to handle.
This is a bug that needs to be fixed in Windowbuilder.
我看到这是一篇旧文章,但仍然可以帮助遇到同样问题的人。
如果右键单击 gwt.xml 文件,则选项可见,如果单击项目,则选项不可见。这就是我遇到的问题。
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.
我遇到了这个问题。我通过安装解决了:(
如果您使用的是 Eclipse Indigo)
http://dl.google.com/eclipse/inst/d2gwt/latest/3.7
只需检查您拥有的版本即可。那应该可以解决问题。
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.
“选择您的 GWT 模块文件,然后右键单击选择 Google Web Toolkit > 配置以使用 Ext GWT (GXT)”http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html
读取 ext-gwt zip 中的 setup.txt:
步骤 1 ->在 Eclipse 中创建一个 Google Web 应用程序项目。
将下载中的 /resources 文件夹的内容复制到 war 文件夹中的 {foldername} 位置。
将 {foldername} 替换为您在 war 文件夹中为资源创建的文件夹的名称。
步骤3->将以下样式表添加到您的主页。
步骤3b->如果您使用图表,请将以下脚本添加到您的主页。
步骤 4 ->将以下条目添加到您的项目模块 xml 文件中。
步骤5-> Eclipse 设置(其他开发环境应该类似)
这些说明假设您有一个现有的项目和启动配置。
将 gxt.jar 添加到项目中。
一个。右键单击“Package Explorer”中的项目名称。
b.从内容菜单中选择“属性”。
c.选择“Java 构建路径”。
d.选择“库”选项卡。
e.使用“添加 JAR...”或“添加外部 JAR...”添加 gxt.jar。
将 GXT jar 添加到启动配置。
一个。选择运行/打开运行对话框。
b.在“Java 应用程序”下选择适当的启动配置。
c.选择“类路径”选项卡。
d.将 gxt.jar 添加到类路径。
"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
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.
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...'.
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.
这也发生在我身上。我必须从更新站点安装 WindowBuilder Pro(您可以找到它 此处),然后出现“Google Web Toolkit > 配置使用 Ext GWT (GXT)”选项。
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.
对 GXT 和 SmartGWT 等第 3 方组件的支持仅在此处提供的完整版 GWT Designer 中提供...
http://code.google.com/webtoolkit/tools/download-gwtdesigner.html
安装完整版本,然后按照此处的说明进行操作...
http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html< /a>
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
我刚刚遇到了同样的问题。我让它工作的唯一方法是这样的:
因此,我创建了一个新项目,使用:New Project > WindowBuilder/GWT Designer/Model/GWT Java 项目:
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: