Eclipse Outline View is empty

前端 未结 16 1009
轮回少年
轮回少年 2021-02-04 08:15

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

相关标签:
16条回答
  • 2021-02-04 08:47

    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!

    0 讨论(0)
  • 2021-02-04 08:52

    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 :-)

    0 讨论(0)
  • 2021-02-04 08:53

    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.

    0 讨论(0)
  • 2021-02-04 08:55

    I solved this by navigating to /workspace/.metadata/.plugins/org.eclipse.cdt.core and deleting the .pdom file that corresponds to my project

    0 讨论(0)
  • 2021-02-04 08:56

    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).

    0 讨论(0)
  • 2021-02-04 08:57

    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.

    0 讨论(0)
提交回复
热议问题