Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In eclipse package explorer, how can I expand a tree in one click?

Tags:

eclipse

For example, I have a folder structure like this:

src
└─test
    ├─java
       └─com
           └─google
              └─test
                  │  AllTests.java

in order to see file AllTests.java, I need to click many times to expand the tree. I'm wondering if there is an option as "expand all" to expand the tree in 1 click.

like image 346
SparedWhisle Avatar asked Sep 18 '12 06:09

SparedWhisle


4 Answers

Simply pressing Numpad_Multiply works for me for expanding all the subtree of the selected item in the package explorer, with Eclipse Luna.

like image 86
DLight Avatar answered Nov 03 '22 03:11

DLight


Using Eclipse Juno and Mac OS X 10.7.5 you can expand with Alt+Right, but this expand everything, including methods and variables.

like image 26
vlopezla Avatar answered Nov 03 '22 03:11

vlopezla


You can avoid the hierarchical layout by using the flat package presentation (which is default):

Screenshot

If you typically just want to find the file which you have currently opened in the editor, then please activate editor linking:

enter image description here

like image 35
Bananeweizen Avatar answered Nov 03 '22 01:11

Bananeweizen


Check out with Shift + Numpad_multiply for expanding all and Shft + Ctrl + Numpad_divide to collapse all

like image 39
sakthisundar Avatar answered Nov 03 '22 01:11

sakthisundar