GWT Designer 在 xml 源自动完成方面滞后
一些假装: 将 MyEclipse 8.6 与 GWT 2.2.0 结合使用。如您所知,它现在随 GWT Designer 一起提供。
我注意到,在 GWT Designer 中编辑 xml 时,每次我在标签中输入新属性时,它都会开始滞后。确切的点是当我按“=”时。此滞后会使 Eclipse 冻结大约 1-2 分钟。正如您可以想象的那样,这使得使用 UIBinder 的 XML Source 几乎难以忍受。我认为延迟是由于 Eclipse 查找建议放入自动完成下拉列表中,但这需要 1-2 分钟。
我的问题是: 在 GWT Designer 中编辑 XML 源时,如何防止 Eclipse 出现这种类型的延迟?你们的开发人员正在做什么来解决这个问题?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以右键单击正在编辑的 *.ui.xml 文件,然后选择“打开方式”->“打开方式”,而不是使用 WindowBuilder 编辑器。 UiBinder 模板编辑器。我没有使用 GWT Designer,并且 WindowBuilder 根本没有自动完成功能,因此我使用 UiBinder 模板编辑器。
Instead of using the WindowBuilder Editor, you can right-click on *.ui.xml file you're editing and select Open With -> UiBinder Template Editor. I am not using GWT Designer, and WindowBuilder doesn't have autocomplete for me at all, so I use UiBinder Template Editor instead.
尽管我使用的是 STS 2.6.0,但我看到了类似的问题。我最终通过使用普通的 Eclipse XML 编辑器解决了这个问题,右键单击 Open With -> XML 编辑器,但您会失去自动完成功能和一些验证功能。
我的第一次尝试是将 xhtml.ent、uibinder.xsd 和 com.google.gwt.user.client.ui.xsd 添加到 XML 目录中,因为我怀疑这是通过网络阻止获取这些内容的原因,但事实并非如此帮助。
我还关闭了所有验证,这也没有任何效果。
所以我不介意自己对此给出明确的答案。
I see a similar problem although I am using STS 2.6.0. I eventually worked around it by using the normal eclipse XML editor, right click Open With -> XML Editor but you lose autocomplete and some validation.
My first attempt was to add xhtml.ent, uibinder.xsd and com.google.gwt.user.client.ui.xsd to the XML Catalog as I suspected that it was something around blocking over the network getting these but that didn't help.
I also turned off all validation which also didn't have any effect.
So I wouldn't mind a definitive answer to this myself.
请阅读此处:https://groups.google.com/论坛/#!topic/google-web-toolkit/2j0RulDMfgc/discussion。
您需要下载 2 个 xsd:
然后将它们添加到 XmlCatalog(窗口 -> 首选项 -> Xml -> XmlCatalog -> 用户指定的条目 -> 添加.. ->文件系统)
为我工作。
Eclipse 在自动完成期间不再冻结。如果我尝试在 .ui.xml 文件中按 ctrl+shift+F 来设置文本格式,它仍然会冻结。
Read here: https://groups.google.com/forum/#!topic/google-web-toolkit/2j0RulDMfgc/discussion.
You need to download the 2 xsd:
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.