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
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
import org.eclipse.ui.internal.ide.IIDEHelpContextIds;
/**
 * Standard action for opening the currently selected project(s).
 * <p>
 * Note that there is a different action for opening an editor on file resources:
 * <code>OpenFileAction</code>.
 * </p>
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 */
public class OpenResourceAction extends WorkspaceAction implements
        IResourceChangeListener {
    /**
     * The id of this action.
     */
    public static final String ID = PlatformUI.PLUGIN_ID
            + ".OpenResourceAction"; 
    /**
     * Creates a new action.
     *
     * @param shell the shell for any dialogs
     */
    public OpenResourceAction(Shell shell) {
        super(shell, IDEWorkbenchMessages.OpenResourceAction_text);
        PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
				IIDEHelpContextIds.OPEN_RESOURCE_ACTION);
        setToolTipText(IDEWorkbenchMessages.OpenResourceAction_toolTip);