Eclipse的自动完成一些Java文件不工作 [英] Eclipse autocomplete not working in some Java files
问题描述
我注意到,自动完成没有在一些在Eclipse Java文件的工作。
此外,在自动完成不工作的文件,显示一个中空的J为Java文件的图标。其中,自动完成工作,对Java文件的图标是一个充满J的文件
I have noticed that autocomplete is not working in some of java files in Eclipse. Also, the files where autocomplete is not working, display a hollow "J" as the icon for the Java file. The files where autocomplete is working, icon for java file is a filled "J"
我想知道,如果有人可以点出了什么毛病都suddent,为什么图标的变化,为什么自动完成和语法高亮是关断的文件,一个空心J的图标?
I am wondering if someone can point out what went wrong all of suddent, why the change in icons and why autocomplete and syntax highlighting is turned-off in the files with a hollow "J" icon?
感谢。
更新
基本上,我在做什么VonC曾建议但是Eclipse并没有令人耳目一新,这就是为什么我在想,VonC的建议不工作,做了刷新后,问题解决了。
Basically, I was doing what VonC has suggested but Eclipse was not refreshing that it why I was thinking that VonC's suggestion isn't working, after doing a refresh, the problem resolved.
推荐答案
在此下面的图片, MyClass.java
有一个中空的Ĵ
,因为它明确地从源头上排除建:
In this following picture, MyClass.java
has a hollow J
, because it is explicitly excluded from the sources to build:
你能去该项目的性质, Java构建路径
节来源
选项卡看看一些排除过滤器已设置?结果
这是通常例如定义:
Could you go to the properties of the project, "Java Build Path
" Section, "Source
" tab and see if some exclusion filter has been set ?
It is usual for instance to define:
**/Test*.java
在第一次构建任何单元测试类排除(当你有一大套的来源,不希望自动完成过程中与测试类psented $ P $,或者不想让他们在源搜索考虑)
to exclude at first building any unit-test class (when you have a large set of sources and do not want to be presented with Test classes during auto-completion, or do not want them considered during source searches).
这篇关于Eclipse的自动完成一些Java文件不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!