Package org.eclipse.ui.internal
Class CloseAllSavedAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.ui.actions.PartEventAction
org.eclipse.ui.internal.PageEventAction
org.eclipse.ui.internal.CloseAllSavedAction
- All Implemented Interfaces:
IAction,ActionFactory.IWorkbenchAction,IPageListener,IPartListener,IPropertyListener
Closes all editors except ones with unsaved changes.
-
Field Summary
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
ConstructorsConstructorDescriptionCloseAllSavedAction(IWorkbenchWindow window) Create an instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()ThePageEventActionimplementation of thisActionFactory.IWorkbenchActionmethod deregisters the part and page listener adding by the constructor.voidpageActivated(IWorkbenchPage page) ThePageEventActionimplementation of thisIPageListenermethod records that the given page is active.voidpageClosed(IWorkbenchPage page) ThePageEventActionimplementation of thisIPageListenermethod clears the active page if it just closed.voidpartClosed(IWorkbenchPart part) ThePartEventActionimplementation of thisIPartListenermethod clears the active part if it just closed.voidpartOpened(IWorkbenchPart part) ThePartEventActionimplementation of thisIPartListenermethod does nothing.voidpropertyChanged(Object source, int propID) Indicates that a property has changed.voidrun()The default implementation of thisIActionmethod does nothing.Methods inherited from class org.eclipse.ui.internal.PageEventAction
getActivePage, getWorkbenchWindow, pageOpenedMethods inherited from class org.eclipse.ui.actions.PartEventAction
getActivePart, partActivated, partBroughtToTop, partDeactivatedMethods inherited from class org.eclipse.jface.action.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, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextMethods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
-
Constructor Details
-
CloseAllSavedAction
Create an instance of this class.- Parameters:
window- the window
-
-
Method Details
-
pageActivated
Description copied from class:PageEventActionThePageEventActionimplementation of thisIPageListenermethod records that the given page is active. Subclasses may extend this method if action availability has to be recalculated.- Specified by:
pageActivatedin interfaceIPageListener- Overrides:
pageActivatedin classPageEventAction- Parameters:
page- the page that was activated- See Also:
-
pageClosed
Description copied from class:PageEventActionThePageEventActionimplementation of thisIPageListenermethod clears the active page if it just closed. Subclasses may extend this method if action availability has to be recalculated.- Specified by:
pageClosedin interfaceIPageListener- Overrides:
pageClosedin classPageEventAction- Parameters:
page- the page that was closed- See Also:
-
partClosed
Description copied from class:PartEventActionThePartEventActionimplementation of thisIPartListenermethod clears the active part if it just closed. Subclasses may extend this method if action availability has to be recalculated.- Specified by:
partClosedin interfaceIPartListener- Overrides:
partClosedin classPartEventAction- Parameters:
part- the part that was closed- See Also:
-
partOpened
Description copied from class:PartEventActionThePartEventActionimplementation of thisIPartListenermethod does nothing. Subclasses should extend this method if action availability has to be recalculated.- Specified by:
partOpenedin interfaceIPartListener- Overrides:
partOpenedin classPartEventAction- Parameters:
part- the part that was opened- See Also:
-
propertyChanged
Description copied from interface:IPropertyListenerIndicates that a property has changed.- Specified by:
propertyChangedin interfaceIPropertyListener- Parameters:
source- the object whose property has changedpropID- the id of the property which has changed; property ids are generally defined as constants on the source class
-
run
public void run()Description copied from class:ActionThe default implementation of thisIActionmethod does nothing. Subclasses should override this method if they do not need information from the triggering event, or overriderunWithEvent(Event)if they do. -
dispose
public void dispose()Description copied from class:PageEventActionThePageEventActionimplementation of thisActionFactory.IWorkbenchActionmethod deregisters the part and page listener adding by the constructor. Subclasses should extend this method to do additional cleanup.- Specified by:
disposein interfaceActionFactory.IWorkbenchAction- Overrides:
disposein classPageEventAction
-