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
IResource s. |
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, updateSelection
createOperation, getActionResources, runInBackground, runInBackground, runInBackground
resourceIsType, selectionIsOfType
getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
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, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public 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()
CloseResourceAction
WorkspaceAction
method
method saves and closes the resource's dirty editors before closing
it.run
in interface IAction
run
in class CloseResourceAction
How radio buttons are handled
,
How check boxes are handled
protected void clearCache()
SelectionListenerAction
SelectionListenerAction
implementation of this
BaseSelectionListenerAction
method clears the cached
resources and non-resources.clearCache
in class SelectionListenerAction
protected List getSelectedResources()
SelectionListenerAction
IResource
s.getSelectedResources
in class CloseResourceAction
IResource
)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 IResourceChangeListener
resourceChanged
in class CloseResourceAction
event
- the resource change eventIResourceDelta
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.