|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.ui.actions.BaseSelectionListenerAction
org.eclipse.ui.actions.SelectionListenerAction
org.eclipse.ui.actions.WorkspaceAction
org.eclipse.ui.actions.CloseResourceAction
org.eclipse.ui.actions.CloseUnrelatedProjectsAction
This action closes all projects that are unrelated to the selected projects. A project is unrelated if it is not directly or transitively referenced by one of the selected projects, and does not directly or transitively reference one of the selected projects.
This class may be instantiated; it is not intended to be subclassed.
IDEActionFactory.CLOSE_UNRELATED_PROJECTS
Field Summary | |
---|---|
static String |
ID
The id of this action. |
Fields inherited from interface org.eclipse.jface.action.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_TEXT |
Constructor Summary | |
---|---|
CloseUnrelatedProjectsAction(Shell shell)
Creates this action. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.ui.actions.CloseResourceAction |
---|
getModelProviderIds, getOperationMessage, getProblemsMessage, getProblemsTitle, invokeOperation, run, setModelProviderIds, shouldPerformResourcePruning, updateSelection |
Methods inherited from class org.eclipse.ui.actions.WorkspaceAction |
---|
createOperation, getActionResources, runInBackground, runInBackground, runInBackground |
Methods inherited from class org.eclipse.ui.actions.SelectionListenerAction |
---|
getSelectedNonResources, resourceIsType, selectionIsOfType |
Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction |
---|
getStructuredSelection, runWithEvent, selectionChanged, selectionChanged |
Methods inherited from class org.eclipse.jface.action.AbstractAction |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
---|
addPropertyChangeListener, removePropertyChangeListener |
Field Detail |
public static final String ID
Constructor Detail |
public CloseUnrelatedProjectsAction(Shell shell)
shell
- The shell to use for parenting any dialogs created by this
action.Method Detail |
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 SelectionListenerAction
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
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.