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
*/
    public boolean isLinkingEnabled() {
        return linkingEnabled;
    }
    /**
     * Brings the corresponding editor to top if the selected resource is open.
     * 
     * @since 2.0
     */
    protected void linkToEditor(IStructuredSelection selection) {
    	if (this != this.getSite().getPage().getActivePart())
    		return;
    	
        Object obj = selection.getFirstElement();
        if (obj instanceof IFile && selection.size() == 1) {
            IFile file = (IFile) obj;
            IWorkbenchPage page = getSite().getPage();
            IEditorPart editor = ResourceUtil.findEditor(page, file);
            if (editor != null) {
                page.bringToTop(editor);
                return;
            }
        }   
    }
    /**
     * Creates the action group, which encapsulates all actions for the view.
     */
    protected void makeActions() {
    	MainActionGroup group = new MainActionGroup(this);
        setActionGroup(group);