无法编辑xml文件,但可以编辑.java? [英] Unable to edit xml files but can edit .java?

查看:135
本文介绍了无法编辑xml文件,但可以编辑.java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题。



我正在处理一个已经导入到eclipse的项目。我可以查看所有文件。没有显示错误。我可以运行该项目,它将显示在模拟器上。



当我尝试更改xml文件中的代码时,实际上所有的xml文件都没有输入在,没有字符,没有空格,没有新行。没有。我甚至尝试制作一个新的xml文件,我无法编辑它。



令人惊讶的是,我可以编辑.java文件。



我希望这只是我的一个愚蠢的代表,但任何人都不会赞赏。



谢谢。 / p>

解决方案

您是否在Eclipse中提供了XML编辑器/透视图?我记得这个包在Ubuntu 9.10中可用的Eclipse版本中缺少,必须手动安装。



要查看是否有,请检查在窗口 - >开放视角 - >其他...的视角列表中列出了XML。或者转到帮助 - >安装新软件,然后单击已安装的内容?链接到结果对话框 - 您正在寻找类似Eclipse XML编辑器和工具。



如果找不到,那么可以尝试安装它从适用于您的Eclipse版本的适当的软件站点(例如我使用的是3.5.1 aka Galileo,因此该站点是 http://download.eclipse.org/releases/galileo/ ),通过帮助 - >安装新软件对话框。


Hi I have a strange problem.

I'm working on an existing project which I have imported into eclipse. I can view all files. There are no errors being indicated. I can run the project and it will show on the emulator.

When I attempt to change the code in the xml file, in fact, all xml files, nothing gets typed in, no characters, no space, no new line. nothing. I even tried making a new xml files, and I couldn't edit it.

Surprisingly, I can edit the .java files.

I hope this is just something stupid on my behalf but anyone help would be appreciated.

Thanks.

解决方案

Do you have the XML editor/perspective available in Eclipse? I recall that this package was missing from the version of Eclipse available on Ubuntu 9.10 and had to be installed manually.

To see if you have it, either: check if "XML" is in the list of perspectives from "Window"->"Open Perspective"->"Other...". Or else go to "Help"->"Install New Software" and then click the "What is already installed?" link in the resulting dialog - you're looking for something like "Eclipse XML Editors & Tools".

If you can't find it then you could try installing it from the appropriate software site for your version of Eclipse (for example I'm using 3.5.1 aka Galileo so the site is http://download.eclipse.org/releases/galileo/), via the "Help"->"Install New Software" dialog.

这篇关于无法编辑xml文件,但可以编辑.java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆