|
Eclipse Platform Release 3.6 |
|||||||||
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
public class 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(IShellProvider provider)
Creates this action. |
|
CloseUnrelatedProjectsAction(Shell shell)
Deprecated. CloseUnrelatedProjectsAction(IShellProvider) |
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. |
void |
run()
The implementation of this WorkspaceAction method
method saves and closes the resource's dirty editors before closing
it. |
Methods inherited from class org.eclipse.ui.actions.CloseResourceAction |
---|
getModelProviderIds, getOperationMessage, getProblemsMessage, getProblemsTitle, getSelectedNonResources, invokeOperation, 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 |
---|
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)
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.Method Detail |
---|
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
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
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.