无法编辑xml文件,但可以编辑.java?

编程入门 行业动态 更新时间:2024-10-17 16:33:07
本文介绍了无法编辑xml文件,但可以编辑.java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我有一个奇怪的问题。

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

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

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

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

谢谢。 / p>

解决方案

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

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

如果找不到,那么可以尝试安装它从适用于您的Eclipse版本的适当的软件站点(例如我使用的是3.5.1 aka Galileo,因此该站点是 download.eclipse/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 download.eclipse/releases/galileo/), via the "Help"->"Install New Software" dialog.

更多推荐

无法编辑xml文件,但可以编辑.java?

本文发布于:2023-11-28 15:18:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642927.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编辑   文件   xml   java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!