A simple one today. My Outline
view in eclipse does not show me any methods or fields anymore. I have selected the few options that are available in the outline vie
A couple of ideas:
Link with Editor
button on the Outline view to ensure the view reflects the currently open Java file?Right click on the project
> Build path
> Configure Build Path
> Source tab
: The package structure of your class should be under one of these source folders..java
file extension?Ctrl
+ o
(quick view) works then there must be something wrong with the Outline view itself: Double check in the drop down-menu Filters
nothing is filtered out and same for the Visible Categories
section.I had the same exact issue, however I am using MyEclipse. For me, simply restarting the IDE resolved the issue. Not sure what caused it, possibly switching perspectives? Anywho, just thought I'd throw this out there for informational purposes.
If the Java file/files does not show in the outline
move the file out elsewhere
do a refresh
move back the file
do a refresh again
the outline will be populated again
This works in my case:
Good luck!
Tranz's response worked fine for me, even though the path to the file is slightly different (I am using Eclipse Luna):
.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
After deleting those lines and restarting Eclipse, the Outline works fine again.
Apparently the reason for this problem is that the DLTK (Dynamic Languages ToolKit) index is borken.
Following Five tips for speeding up Eclipse PDT and nWire, I have closed Eclipse, and only deleted the h2 database (*.db
) files in <workspace>/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2/
.
When restarting Eclipse, the databases files are created again, and after that the Outline View is working again. IIRC, this is the second time that I had this problem (first with Eclipse 3.7.x and now 4.2) and that this solution worked for me.