1、在gwt-user-xxx.jar 找到com.google.gwt.uibinder.resources.
解压这三个文件:
com.google.gwt.user.client.ui.xsd
uibinder.xsd
xhtml.ent
2、配置eclipse
Window -> Preferences -> Xml -> XmlCatalog -> User Specified Entries -> Add.. -> FileSystem
分别添加刚才的三个文件:
配置如下:
key: urn:import:com.google.gwt.user.client.ui
file: com.google.gwt.user.client.ui.xsd
key: urn:ui:com.google.gwt.uibinder
file: uibinder.xsd
key: http://dl.google.com/gwt/DTD/xhtml.ent
KeyType:URI
file: xhtml.ent
好了配置完成。让代码飞一会吧.