Eclipse源与文件系统不同步 [英] Eclipse source out of sync with file system

查看:138
本文介绍了Eclipse源与文件系统不同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个java项目,对Eclipse没有太多的经验。在包资源管理器中,我可以看到所有类的项目的大纲,但是当我尝试编辑任何一个类时,它表示没有找到源代码。当我看源代码是它似乎应该是在哪里。我假设在从源代码控制中提取代码时,路径必须从原来的更改。有一个简单的方法来告诉IDE只需将代码文件连接到一个类?



真正奇怪的是,一些文件在同一个目录被发现,而其他人则没有。不能说我非常高兴这个IDE到目前为止。

解决方案

右键点击Package Explorer视图中的项目,选择刷新。


I inherited a java project and don't have much experience with Eclipse. In the package explorer I can see the outline of the project with all the classes but when I try to edit any of them it says the source code is not found. When I look the source code is where it seems it is supposed to be. I am assuming that in pulling the code out of source control the path must have changed from the original. Is there an easy way to tell the IDE to just connect a code file to a class?

What's really weird is that 'some' of the files in the very same directory are found while others are not. Can't say I think very highly of this IDE so far.

解决方案

Right click on the project in the Package Explorer view and select Refresh.

这篇关于Eclipse源与文件系统不同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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