Eclipse的XML编辑器在Eclipse中损坏 [英] Android XML editors broken in Eclipse
问题描述
直到今天(我不知道我做了什么),如果我双击一个android XML文件,那么将出现正确的编辑器。
Until today (I have no idea what I did to cause this), if I double-clicked an android XML file, then the correct editor would appear.
例如,双击布局文件将打开图形布局选项卡和一个带有用于直接编辑的XML内容的选项卡(命名为要编辑的文件)。现在我得到的是一个设计和源代码选项卡!
For example, double-clicking a layout file would open a Graphical Layout tab and a tab with the XML contents for direct editing (named as the file being edited). Now all I get is a Design and a Source tab!
我无法预览我正在编辑的布局(这与以下相同:图形布局选项卡不会出现某些布局文件到Eclipse )
I am unable to preview the layouts I am editing (this is the same as here: Graphical Layout tab does not appear for some layout files into Eclipse)
该链接还提供了解决方法,因为我可以右键单击文件并使用正确的编辑器打开,但这不是一个解决方案!
That link also gives a 'workaround' in that I can right-click the file and open with the right editor, but this isn't a solution!
我如何可以这样排序?我已经重新安装了新的Eclipse,ADT没有用(没有使用新的SDK ...会有什么事情)。
How can I sort this permenantly? I have re-installed fresh Eclipse, ADT to no avail (haven't used fresh SDK... will that matter??).
**注意这是所有的Android XML文件,不只是我上面提到的布局! **
** Note this happens to all Android XML files, not just layout ones I mentioned above! **
推荐答案
是的,这可能是一个永久的解决方案:
Yes this may be a permanent solution:
- 选择任何XML布局文件
- 点击
Window->首选项
菜单。 - 按照附件中提到的步骤进行。
- Select any XML layout file
- click on
Window->Preferences
menu. - Follow steps as mentioned in attached image.
这篇关于Eclipse的XML编辑器在Eclipse中损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!