public class CloseUnrelatedProjectsAction extends CloseResourceAction
This class may be instantiated; it is not intended to be subclassed.
IDEActionFactory.CLOSE_UNRELATED_PROJECTS| Modifier and Type | Field and Description |
|---|---|
static String |
ID
The id of this action.
|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT| Constructor and Description |
|---|
CloseUnrelatedProjectsAction(IShellProvider provider)
Creates this action.
|
CloseUnrelatedProjectsAction(Shell shell)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCache()
The
SelectionListenerAction implementation of this
BaseSelectionListenerAction method clears the cached
resources and non-resources. |
protected List |
getSelectedResources()
Returns the elements in the current selection that are
IResources. |
void |
resourceChanged(IResourceChangeEvent event)
Handles a resource changed event by updating the enablement
when projects change.
|
void |
run()
The implementation of this
WorkspaceAction method
method saves and closes the resource's dirty editors before closing
it. |
getModelProviderIds, getOperationMessage, getProblemsMessage, getProblemsTitle, getSelectedNonResources, invokeOperation, setModelProviderIds, shouldPerformResourcePruning, updateSelectioncreateOperation, getActionResources, runInBackground, runInBackground, runInBackgroundresourceIsType, selectionIsOfTypegetStructuredSelection, runWithEvent, selectionChanged, selectionChangedconvertAccelerator, 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, setToolTipTextaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic static final String ID
public CloseUnrelatedProjectsAction(Shell shell)
CloseUnrelatedProjectsAction(IShellProvider)shell - The shell to use for parenting any dialogs created by this
action.public CloseUnrelatedProjectsAction(IShellProvider provider)
provider - The shell to use for parenting any dialogs created by this
action.public void run()
CloseResourceActionWorkspaceAction method
method saves and closes the resource's dirty editors before closing
it.run in interface IActionrun in class CloseResourceActionHow radio buttons are handled,
How check boxes are handledprotected void clearCache()
SelectionListenerActionSelectionListenerAction implementation of this
BaseSelectionListenerAction method clears the cached
resources and non-resources.clearCache in class SelectionListenerActionprotected List getSelectedResources()
SelectionListenerActionIResources.getSelectedResources in class CloseResourceActionIResource)public void resourceChanged(IResourceChangeEvent event)
This method overrides the super-type implementation to update the selection when the open state or description of any project changes.
resourceChanged in interface IResourceChangeListenerresourceChanged in class CloseResourceActionevent - the resource change eventIResourceDelta
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.