GWT designer lags behind autocomplete xml source

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

I noticed that when editing xml in GWT Designer every time I enter a new tag into the tag, it starts to lag. The exact point is when I press '='. This lag freezes the eclipse for about 1-2 minutes. As you can imagine, this makes using XML Source for UIBinder almost unbearable. I assume that the lag is due to the fact that the eclipse looks through the offers in order to automatically fall, but it takes 1-2 minutes.

My question is: How do you prevent an eclipse from this type of delay when editing an XML source in GWT Designer? What are you doing to get around this?

+4
source share
3 answers

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

You need to download 2 xsd:

Then add them to 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 the text by pressing ctrl + shift + F in the .ui.xml file.

+4
source

Instead of using the WindowBuilder editor, you can right-click the * .ui.xml file that you are editing and select "Open with β†’ UiBinder Template Editor". I do not use GWT Designer, and WindowBuilder does not have autocompletion for me at all, so instead I use the UiBinder template editor.

+1
source

I see a similar problem, although I am using STS 2.6.0. I ended up working on it using the regular eclipse XML editor, right-clicking Open With β†’ XML Editor, but you lost autocompletion and some validation.

My first attempt was to add xhtml.ent, uibinder.xsd and com.google.gwt.user.client.ui.xsd to the XML directory, as I suspected it was something like blocking over the network receiving these but didn’t help.

I also turned off all validation, which also had no effect.

Therefore, I am not against the final answer to this myself.

0
source

Source: https://habr.com/ru/post/1343055/


All Articles