|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISaveablePart2
Workbench parts implement or adapt to this interface to participate in actions that require a prompt for the user to provide input on what to do with unsaved data when the part is closed or the Workbench is shut down.
Field Summary | |
---|---|
static int |
CANCEL
Standard return code constant (value 2) indicating that the part does not need to be saved and the part should not be closed. |
static int |
DEFAULT
Standard return code constant (value 3) indicating that the default behavior for prompting the user to save will be use. |
static int |
NO
Standard return code constant (value 1) indicating that the part does not need to be saved and the part should be closed. |
static int |
YES
Standard return code constant (value 0) indicating that the part needs to be saved. |
Fields inherited from interface org.eclipse.ui.ISaveablePart |
---|
PROP_DIRTY |
Method Summary | |
---|---|
int |
promptToSaveOnClose()
Prompts the user for input on what to do with unsaved data. |
Methods inherited from interface org.eclipse.ui.ISaveablePart |
---|
doSave, doSaveAs, isDirty, isSaveAsAllowed, isSaveOnCloseNeeded |
Field Detail |
---|
static final int YES
static final int NO
static final int CANCEL
static final int DEFAULT
Method Detail |
---|
int promptToSaveOnClose()
Implementors are expected to open a custom dialog where the
user will be able to determine what to do with the unsaved data.
Implementors may also return a result of DEFAULT
to get the default prompt handling from the Workbench.
YES
,
NO
, CANCEL
or DEFAULT
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |