Search code examples
gwtmyeclipseuibindergwt-designer

GWT Designer lags on xml source autocomplete


Some pretense: Using MyEclipse 8.6 with GWT 2.2.0. As you know it comes with GWT Designer now.

I've noticed that while editing the xml within GWT Designer, every time I type in a new attribute to a tag it starts to lag. The exact point is when I press '='. This lag freezes eclipse for about 1-2 minutes. As you can imagine, it makes using XML Source for UIBinder almost unbearable. I assume the lag is due to eclipse looking up suggestions to put into an auto complete drop down, but it takes a whopping 1-2 minutes.

My question is: How do you prevent eclipse from this type of lag while editing the XML source in GWT Designer? What are you developers doing to get around it?


Solution

  • Read here: https://groups.google.com/forum/#!topic/google-web-toolkit/2j0RulDMfgc/discussion.

    You need to download the 2 xsd:

    1. http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd
    2. uibinder.xsd (replace com.google.gwt.user.client.ui.xsd in the url above. I can't post more than 2 urls yet...)

    Then add them to the XmlCatalog (Window -> Preferences -> Xml -> XmlCatalog -> User Specified Entries -> Add.. -> FileSystem)

    Worked for me.

    Eclipse no longer freezes during auto complete. It still freezes if I try to format text by pressing ctrl+shift+F in the .ui.xml file.