Class CloseUnrelatedProjectsActionEx

All Implemented Interfaces:
EventListener, IResourceChangeListener, IAction, ISelectionChangedListener

public class CloseUnrelatedProjectsActionEx extends CloseUnrelatedProjectsAction
Close Unrelated Projects of the IIZI Explorer and the Project Explorer: Eclipse's action, with the question for the changed files of the Module projects it is about to close in front of the close (UnsavedFiles.askBeforeClose), as CloseResourceActionEx has it.

Eclipse's action works out the unrelated projects anew inside its run (it refreshes the graph of the project references and asks whether to close them); the question is asked for the projects it then gives.

Author:
Christopher Mindus
  • Constructor Details

    • CloseUnrelatedProjectsActionEx

      public CloseUnrelatedProjectsActionEx(IShellProvider provider)
      Creates the action.
      Parameters:
      provider - The provider of the shell for a dialog.
  • Method Details

    • run

      public void run()
      Closes the unrelated projects as Eclipse's action does, the changed files of those projects asked for first.
      Specified by:
      run in interface IAction
      Overrides:
      run in class CloseUnrelatedProjectsAction
    • getSelectedResources

      protected List<? extends IResource> getSelectedResources()
      Gets the projects the action closes: in a run, after the question was answered, the projects that may be closed (CloseQuestion.closable(List)).
      Overrides:
      getSelectedResources in class CloseUnrelatedProjectsAction
      Returns:
      The projects.