Bug 168757 [KeyBindings] Add keybinding for 'collapse all' button in Navigator & Package Explorer
Just a nice to have - would be very handy to assign something like CTRL-minus to the 'collapse all' button in Navigator and Package Explorer views (really, anything w/ a tree view and than button).
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
setSorter(new ResourceSorter(sortType));
    }
    
    /**
     * Initializes the comparator.
	 * @since 3.3
     */
    protected void initResourceComparator(){
        int sortType = ResourceComparator.NAME;
        try {
            int sortInt = 0;
            if (memento != null) {
                String sortStr = memento.getString(TAG_SORTER);
                if (sortStr != null) {
					sortInt = new Integer(sortStr).intValue();
				}
            } else {
                sortInt = settings.getInt(STORE_SORT_TYPE);
            }
            if (sortInt == ResourceComparator.NAME
                    || sortInt == ResourceComparator.TYPE) {
				sortType = sortInt;
			}
        } catch (NumberFormatException e) {
        }
        setComparator(new ResourceComparator(sortType));
    }
    /**
     * Restores the working set filter from the persistence store.
     */