public interface ISaveablePart2 extends ISaveablePart
Note that if a part implements this interface, it is excluded from the common "prompt to save" dialog, and instead opens its own dialog. This may cause multiple prompts to the end user during a single user operation. Implementors should be aware that this may lead to a less than optimal user experience.
|Modifier and Type||Field and Description|
Standard return code constant (value 2) indicating that the part does not need to be saved and the part should not be closed.
Standard return code constant (value 3) indicating that the default behavior for prompting the user to save will be used.
Standard return code constant (value 1) indicating that the part does not need to be saved and the part should be closed.
Standard return code constant (value 0) indicating that the part needs to be saved.
static final int YES
static final int NO
static final int CANCEL
static final int DEFAULT
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
to get the default prompt handling from the Workbench.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.