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
I solved this in the end by just deleting my Workspaces .metadata folder (rm -rf .metadata
OSX). I lost any workspace settings but this for was a few formatting rules, refs to projects (just imported them again) and some custom key shortcuts.
My outline works again!
In Window>Show View>Outline I, too, had the message "Outline view is empty". It was sufficient (Eclipse 4.3.2) to press CTL+O to call the QuickOutline and then the Outline view was filled automatically. I suggest not deleting .metadata because you need it :-)
With Javascript (Rhino) code I had the problem when I used const
variables.
As soon as I changed them to var
variables, the outline appeared again.
I solved this by navigating to /workspace/.metadata/.plugins/org.eclipse.cdt.core
and deleting the .pdom file that corresponds to my project
I got the similar problem in PDT. Click the Outline view, but no response. Ctrl + O
(Quick View) works. But the options (drop down-menu Filters) in outline view is also missing.
I tried to delete DLTK h2 database (*.db) files, but it doesn't work in my case.
Finally, I solved by below methods:
Method 1: As suggested, delete the whole .metadata folder (but lose all setting).
Method 2: Create new Window in Eclipse (Window
> New Window
).
I had the same issue where the Outline was empty and the code was not syntax-highlighted.
To fix it, I right-clicked the file and selected Open With>Java Editor.
For some reason, Eclipse thought that it should open this particular .java file with the Text Editor instead of the Java Editor.