我们在项目中使用 GXT 和 GWT(2.4)。我们使用 UIBinder 进行页面设计。目前我们面临着太多在 xml 页面中编写代码的问题。自动建议花费了太多时间(当我们按 ctl+Space 进行自动建议时变得无响应)。不明白问题出在哪里。
需要帮助。
最佳答案
这可能是由于互联网连接或远程服务器速度慢造成的,这会导致 XSD 文件的检索速度变慢。您可以将 XSD 添加到目录中,引用本地文件而不是远程 URL:
Location: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd
URI: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd
Key Type: Namespace Name
Key: urn:import:com.google.gwt.user.client.ui
Location: http://dl.google.com/gwt/dtd/uibinder.xsd
URI: http://dl.google.com/gwt/dtd/uibinder.xsd
Key Type: Namespace Name
Key: urn:ui:com.google.gwt.uibinder
在 Eclipse 中 >> 首选项 >> XML >> 目录
在用户部分,您可以添加自定义目录,下载提到的 XSD 文件,并指向 XSD 文件的本地版本。
关于GWT uibinder,花费太多时间进行 self 暗示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13171883/