smartGWT 和 Eclipse 与 WindowBuilder
我正在使用 eclipse Helios 和 SmartGWT。如果我启动 WindowBuilder 来设计 GUI,我总是收到此错误消息:
WindowBuilder 仅支持 SmartGWT 版本 2.2、2.3。但2.4发现。
我尝试通过删除 2.4 jar 并添加 2.2 jar 来使用 SmartGWT 版本 2.2。
然而,消息仍然是一样的。如果我使用 GWT Designer,它可以工作,但我没有获得 SmartGWT 控件,而只是从 GWT 获得常用的控件。 我知道我很久以前就使用过 SmartGWT 2.4,但我现在不知道出了什么问题...... 有人有想法吗?它已经可以帮助我将 smartgwt 控件提供给 WT 设计器,但我不知道如何做到这一点......
非常感谢
I am using eclipse Helios with SmartGWT. If I start the WindowBuilder to design a GUI I always get this error message:
WindowBuilder supports only SmartGWT versions 2.2, 2.3. But 2.4 found.
I tried to use SmartGWT Version 2.2 by removing the 2.4 jars and adding the 2.2 jars.
However the message remained the same. If I use the GWT Designer it works, but I do not get the SmartGWT controls, but just he usual ones fropm GWT.
I know that I had it working with SmartGWT 2.4 some ancient time but I have no idea what's wrong now...
Does anybody have an idea ? It would already help I could get the smartgwt controls to the WT designer but I have no idea on how to do that...
Thanks very much
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须按照此处的说明进行操作。
总结一下:
使用找到的 gwt 设计器类创建一个新的 java 项目此处
将版本号添加到 VALID_VERSIONS 并代码中的 VALID_VERSIONS_STRINGS(例如“3.0”、“3.1”、“4.0”)
您必须从 Indigo 插件文件夹中添加以下 JAR:
com.google.gdt.eclipse.designer.SmartGWT_2.6.0.r37x201206111253.jar
com.google.gdt.eclipse.designer_3.1.2.r37x201303061530.jar
org.eclipse.wb.core_1.5.0.r37x201206111201.jar
org.eclipse.jdt.core_3.7.3.v20120119-1537.jar
org.apache.commons.lang_2.4.0.v201005080502.jar
关闭 eclipse
用 7Zip 或其他东西打开 com.google.gdt.eclipse.designer.SmartGWT_2.6.0.r37x201206111253.jar替换类文件,该文件将位于您的项目 bin 文件夹下
这似乎也适用于 SmartGWT 4.0。不幸的是,我们仍然坚持使用 Indigo 和 WindowBuilder。 Juno 可能适用于简单的 GWT,但我不记得了。开普勒根本不起作用。
You have to follow the instructions here.
To summarize:
create a new java project with the gwt designer class found here
add the version numbers to the VALID_VERSIONS and VALID_VERSIONS_STRINGS in the code (eg, "3.0", "3.1", "4.0")
you'll have to add the following JAR's from your Indigo plugins folder:
com.google.gdt.eclipse.designer.SmartGWT_2.6.0.r37x201206111253.jar
com.google.gdt.eclipse.designer_3.1.2.r37x201303061530.jar
org.eclipse.wb.core_1.5.0.r37x201206111201.jar
org.eclipse.jdt.core_3.7.3.v20120119-1537.jar
org.apache.commons.lang_2.4.0.v201005080502.jar
close eclipse
open com.google.gdt.eclipse.designer.SmartGWT_2.6.0.r37x201206111253.jar with 7Zip or something and replace the class files, which will be under your project bin folder
This seems to be working well with SmartGWT 4.0 also. Unfortunately we're still stuck with using Indigo with WindowBuilder. Juno might work for simple GWT, but I don't remember. Kepler isn't working at all.