Windows: (I m using ,STS v2.8 based on Eclipse 3.7, maybe a Little...
in Project/Package Explorer:
Expand all : Shift + Numpad *
Collpse all: Ctrl + Shift + Numberpad_Divide, or just click the small "-" icon at the top right of current view.
但从我看,扩大所有行动总是使Eclipse/STS无法做出反应(例如,我们可以确定编集的类别档案,或从JAR中发现的,目前认为这些档案太多,可以扩大),因此也许最好先选择具体的一揽子方案。
这些捷径也非常有助于查找档案:
Ctrl + Shift + R: open resource ( all file types, java, jsp, jspf, properties ...), it s my most frequent use and favorite shortcut;
Ctrl + Shift + T: open type ( for Java files only)
在搜查结果表格中,有Expand All(+ sign with Border)和Collapse All(- sign with Border) icons at the first right of the tab。