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
/**
     * Returns the tool tip text for the given element.
     * Used as the tool tip text for the current frame, and for the view title tooltip.
     */
    String getFrameToolTipText(Object element) {
        if (element instanceof IResource) {
            IPath path = ((IResource) element).getFullPath();
            if (path.isRoot()) {
				return ResourceNavigatorMessages.ResourceManager_toolTip;
			}
            return path.makeRelative().toString();
        } 
        
        String text = ((ILabelProvider) getTreeViewer().getLabelProvider())
        	.getText(element);
        if(text == null) {
			return "";
		}
        return text;
    }
    /**
     * Handles an open event from the viewer.
     * Opens an editor on the selected file.
     * 
     * @param event the open event
     * @since 2.0
     */
    protected void handleOpen(OpenEvent event) {
        IStructuredSelection selection = (IStructuredSelection) event
                .getSelection();