Bug 113178 [IDE] Open Dependant Projects
We deal with ~40 projects for our project and have a complex web of dependancies between them. Occasionally its handy to minimise the number of open projects and the usual approach is to close them all and then open up the ones that are needed and their dependancies. The merry dance involved with openning up the deps, the deps of deps and deps of deps of deps could be REALLY simplified if there was a facility to open all dependancies of a project or group of projects.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenResourceAction.java
/**
     * The <code>OpenResourceAction</code> implementation of this
     * <code>SelectionListenerAction</code> method ensures that this action is
     * enabled only if one of the selections is a closed project.
     */
    protected boolean updateSelection(IStructuredSelection s) {
        
        if (!selectionIsOfType(IResource.PROJECT))
            return false;
        Iterator resources = getSelectedResources().iterator();
        while (resources.hasNext()) {
            IProject currentResource = (IProject) resources.next();
            if (!currentResource.isOpen()) {
                return true;
            }
        }
        return false;
    }
    /**
     * Handles a resource changed event by updating the enablement
     * if one of the selected projects is opened or closed.
     */
    public void resourceChanged(IResourceChangeEvent event) {
        
        List sel = getSelectedResources();
        
        if (selectionIsOfType(IResource.PROJECT)) {
            IResourceDelta delta = event.getDelta();
            if (delta != null) {
                IResourceDelta[] projDeltas = delta