Search code examples
eclipsegwtuibindercontent-assistgoogle-plugin-eclipse

GWT UiBinder content assist seems to be missing


I am not new to GWT & UiBinder development, however it has been a long time since I have used Eclipse for this (I've been using Intellij IDEA the past months).

I am now trying to get an efficient working environment for GWT under Eclipse 4.2, and struggling with the content assist for GWT UiBinder (.ui.xml files).

It looks to me that the only thing that is required is that Google Plugin for Eclipse should be installed, which is:

Screenshot showing the current installation of Google plugin for eclipse

And probably also that GWT SDK is enabled in the project configuration, which is.

I am also having Maven and Spring on this project, don't know if that could be some content-assist clash.

Anyhow, my problem is that I don't get the content-assist in the ui.xml files. I get an error if I'm referencing a class widget that does not exist, but I don't get no auto-completion, nor errors for uiFields being declared in XML and not in JAVA (But i do get errors for UiFields being declared in Java and not in Xml).

Any idea about what could be going wrong?

PS: If I open a < and then use CTRL+SPACE to fire auto-completion, I get the "Content Assist not available at current location" error message.


Solution

  • I guess you don't have a XML schema validator / DTD validator set up. Right click your project -> Properties -> Validation it should look something like this:

    enter image description here