---
title: "GWT-解决ui.xml代码提示假死"
author: "kong6001"
date: "2012-04-09T11:33:46Z"
tags: []
categories: ["Web前端"]
slug: "gwt-ui-xml"
draft: false
lastmod: "2012-04-09T11:33:46Z"
id: 1480196
url: "https://fanchi.iteye.com/blog/1480196"
---

1、在gwt-user-xxx.jar 找到com.google.gwt.uibinder.resources.

解压这三个文件:

com.google.gwt.user.client.ui.xsd

uibinder.xsd

 xhtml.ent

 

2、配置eclipse

Window -&gt; Preferences -&gt; Xml -&gt; XmlCatalog -&gt; User Specified Entries -&gt; Add.. -&gt; 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

 

好了配置完成。让代码飞一会吧.![](/images/smiles/icon_biggrin.gif)