- All Known Subinterfaces:
- All Known Implementing Classes:
- See Also:
Field SummaryModifier and TypeFieldDescription
static final intThe property id for
Method SummaryModifier and TypeMethodDescription
voidSaves the contents of this part.
doSaveAs()Saves the contents of this part to another object.
isDirty()Returns whether the contents of this part have changed since the last save operation.
booleanReturns whether the "Save As" operation is supported by this part.
booleanReturns whether the contents of this part should be saved when the part is closed.
PROP_DIRTYstatic final int PROP_DIRTYThe property id for
- See Also:
(IProgressMonitor monitor)Saves the contents of this part.
If the save is successful, the part should fire a property changed event reflecting the new dirty state (
If the save is cancelled through user action, or for any other reason, the part should invoke
IProgressMonitorto inform the caller.
This method is long-running; progress and cancellation are provided by the given progress monitor.
monitor- the progress monitor
doSaveAsvoid doSaveAs()Saves the contents of this part to another object.
Implementors are expected to open a "Save As" dialog where the user will be able to select a new name for the contents. After the selection is made, the contents should be saved to that new name. During this operation a
IProgressMonitorshould be used to indicate progress.
If the save is successful, the part fires a property changed event reflecting the new dirty state (
isDirtyboolean isDirty()Returns whether the contents of this part have changed since the last save operation. If this value changes the part must fire a property listener event with
Note: this method is called often on a part open or part activation switch, for example by actions to determine their enabled status.
trueif the contents have been modified and need saving, and
falseif they have not changed since the last save
isSaveAsAllowedboolean isSaveAsAllowed()Returns whether the "Save As" operation is supported by this part.
trueif "Save As" is supported, and
falseif not supported
isSaveOnCloseNeededboolean isSaveOnCloseNeeded()Returns whether the contents of this part should be saved when the part is closed.
trueif the contents of the part should be saved on close, and
falseif the contents are expendable