GWT设计师不能使用Maven-GWT项目 [英] GWT designer doesn't work with Maven-GWT project

查看:131
本文介绍了GWT设计师不能使用Maven-GWT项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




  • Eclipse Helios

  • google plugin for Eclipse 3.6

  • eclipse的maven2插件

  • eclipse 3.6的Gwt设计器



该项目由gwt-maven-plugin创建。该项目可以在开发模式下运行。但GWT Designer不适用于客户端GUI类。我删除了GWT的Maven依赖项并直接导入Eclipse GWT SDK,GWT Designer开始为客户端GUI类工作。但是它仍然不适用于UiBuilder模板文件。



错误消息是:
UIBinder模板应该在客户端包中。



您正在尝试将UiBinder用于/hsp-web/src/main/java/com/hs/hspweb/client/ui/UserListViewImpl.ui.xml,但是它不在GWT客户端

解决方案

转到项目属性中的Java构建路径,单击
YourProjectName / src / main /资源 - >排除:**
条目,然后按删除按钮。它应该改为排除:(无)
然后,您将能够打开GWT设计器。


I just started a GWT project with environment:

  • Eclipse Helios
  • google plugin for Eclipse 3.6
  • maven2 plugin for eclipse
  • Gwt designer for eclipse 3.6

The project is created by gwt-maven-plugin. The project can run in dev mode. But GWT Designer doesn't work for client GUI class. I removed Maven dependencies for GWT and directly import Eclipse GWT SDK, GWT Designer starts working for client GUI class. But it still doesn't work for UiBuilder template file.

The error message is : UIBinder template should be in client package.

You are attempting to use UiBinder for /hsp-web/src/main/java/com/hs/hspweb/client/ui/UserListViewImpl.ui.xml, however it is not in GWT client package.

解决方案

Go to "Java build path" in project properties, click on "YourProjectName/src/main/resources" -> "Excluded: **" entry and press "Remove" button. It should change to "Excluded: (None)" Then, you will be able to open GWT designer.

这篇关于GWT设计师不能使用Maven-GWT项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆