Class CloseUnrelatedProjectsActionEx
java.lang.Object
- All Implemented Interfaces:
EventListener, IResourceChangeListener, IAction, ISelectionChangedListener
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
Field Summary
Fields inherited from class CloseUnrelatedProjectsAction
IDFields inherited from interface IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXTFields inherited from interface IResourceChangeListener
PROPERTY_EVENT_MASKConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionGets the projects the action closes: in a run, after the question was answered, the projects that may be closed (CloseQuestion.closable(List)).voidrun()Closes the unrelated projects as Eclipse's action does, the changed files of those projects asked for first.Methods inherited from class CloseUnrelatedProjectsAction
clearCache, resourceChangedMethods inherited from class CloseResourceAction
getModelProviderIds, getOperationMessage, getProblemsMessage, getProblemsTitle, getSelectedNonResources, invokeOperation, setModelProviderIds, shouldPerformResourcePruning, updateSelectionMethods inherited from class WorkspaceAction
createOperation, getActionResources, runInBackground, runInBackground, runInBackgroundMethods inherited from class SelectionListenerAction
resourceIsType, selectionIsOfTypeMethods inherited from class BaseSelectionListenerAction
getStructuredSelection, runWithEvent, selectionChanged, selectionChangedMethods inherited from class Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextMethods inherited from class AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Constructor Details
CloseUnrelatedProjectsActionEx
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:
runin interfaceIAction- Overrides:
runin classCloseUnrelatedProjectsAction
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:
getSelectedResourcesin classCloseUnrelatedProjectsAction- Returns:
- The projects.