|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.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 . |
|
|
promptToSaveOnClose(AbstractEditor<M,V,T> 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
.
EditorSaverSupport
public <M extends IPresentationDataSet<? extends IPresentationElement<? extends IElement>>,V extends IVisualDataSet<? extends IVisualElement<? extends IPresentationElement<? extends IElement>>,M>,T extends IDiagram<M,V>> int promptToSaveOnClose(AbstractEditor<M,V,T> 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 |