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 SummaryFields inherited from interface org.eclipse.jface.action.IActionAS_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 SummaryConstructorsConstructorDescriptionCloseAllSavedAction(IWorkbenchWindow window) Create an instance of this class.
- 
Method SummaryModifier 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.PageEventActiongetActivePage, getWorkbenchWindow, pageOpenedMethods inherited from class org.eclipse.ui.actions.PartEventActiongetActivePart, partActivated, partBroughtToTop, partDeactivatedMethods inherited from class org.eclipse.jface.action.ActionconvertAccelerator, 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.AbstractActionaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IActionaddPropertyChangeListener, 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- 
CloseAllSavedActionCreate an instance of this class.- Parameters:
- window- the window
 
 
- 
- 
Method Details- 
pageActivatedDescription 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 interface- IPageListener
- Overrides:
- pageActivatedin class- PageEventAction
- Parameters:
- page- the page that was activated
- See Also:
 
- 
pageClosedDescription 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 interface- IPageListener
- Overrides:
- pageClosedin class- PageEventAction
- Parameters:
- page- the page that was closed
- See Also:
 
- 
partClosedDescription 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 interface- IPartListener
- Overrides:
- partClosedin class- PartEventAction
- Parameters:
- part- the part that was closed
- See Also:
 
- 
partOpenedDescription copied from class:PartEventActionThePartEventActionimplementation of thisIPartListenermethod does nothing. Subclasses should extend this method if action availability has to be recalculated.- Specified by:
- partOpenedin interface- IPartListener
- Overrides:
- partOpenedin class- PartEventAction
- Parameters:
- part- the part that was opened
- See Also:
 
- 
propertyChangedDescription copied from interface:IPropertyListenerIndicates that a property has changed.- Specified by:
- propertyChangedin interface- IPropertyListener
- Parameters:
- source- the object whose property has changed
- propID- the id of the property which has changed; property ids are generally defined as constants on the source class
 
- 
runpublic 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.
- 
disposepublic 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 interface- ActionFactory.IWorkbenchAction
- Overrides:
- disposein class- PageEventAction
 
 
-