|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.backward.editor.EditorSaverSupport
public final class EditorSaverSupport
Handles prompts to save an editor when closing. Caches user's response for a certain amount of time.
| Method Summary | |
|---|---|
static EditorSaverSupport |
getInstance()
Returns single, shared instance of EditorSaverSupport. |
int |
promptToSaveOnClose(AbstractEditor editor)
Prompts the user for action when editor is unsaved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EditorSaverSupport getInstance()
EditorSaverSupport.
EditorSaverSupportpublic int promptToSaveOnClose(AbstractEditor editor)
ISaveablePart2.promptToSaveOnClose()
editor - editor to prompt for
ISaveablePart2.promptToSaveOnClose() - one of
ISaveablePart2.YES, ISaveablePart2.NO or ISaveablePart2.CANCEL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||