简体   繁体   English

Eclipse中没有编辑器用于打开Java文件?

[英]No editor in Eclipse to open Java files with?

I had to reinstall Eclipse on my computer due to an upgrade; 由于升级,我不得不在我的计算机上重新安装Eclipse; now it seems to have "forgotten" how to open and edit Java files. 现在它似乎“忘记了”如何打开和编辑Java文件。 When I first opened a .java file, my system text editor popped up. 当我第一次打开.java文件时,系统文本编辑器弹出。 I tried reinstalling Eclipse; 我尝试重新安装Eclipse; same behaviour. 同样的行为。 I tried removing the .metadata files from my workspace; 我尝试从我的工作区中删除.metadata文件; same behaviour. 同样的行为。 I tried changing the .java file association and tried using the system and default editors; 我尝试更改.java文件关联并尝试使用系统和默认编辑器; same behaviour. 同样的行为。 I tried opening it with all internal editors just to see if that might help - Default Compare Editor, Internal Web Broswer, No Source Found, Source Not Found Editor, Text Editor, Web Browser, and Welcome - but to no avail. 我尝试用所有内部编辑器打开它,看看是否有帮助 - 默认比较编辑器,内部Web Broswer,找不到源代码,找不到源代码编辑器,文本编辑器,Web浏览器和欢迎 - 但无济于事。 There are no error messages; 没有错误消息; it's as if my ability to open Java files in Eclipse has simply disappeared. 好像我在Eclipse中打开Java文件的能力已经消失了。 Has anyone encountered this before? 有没有人遇到过这个?

What about right click > Open with > Java editor? 右键单击>打开> Java编辑器怎么样?

If there is no Java editor, then your eclipse installation is messed up - get a new one from eclipse.org 如果没有Java编辑器,那么你的eclipse安装就搞砸了 - 从eclipse.org获得一个新的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM