public final class AutoSavePart extends AppPartBase implements ActionListener
app, id
Constructor and Description |
---|
AutoSavePart() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event) |
void |
activeEditorChanged()
Invoked after the active editor has changed or when there is no active
editor at all (generally because all documents have been closed).
|
void |
applyPreferences()
If this part supports user preferences, this part should update its
state after reading its settings from the object returned by
AppBase.getPreferences() . |
void |
saveStateChanged()
Invoked after active document has been saved or, on the contrary, when
its has been modified and thus needs to be saved.
|
destroyApp, editingContextChanged, flushPreferences, getApp, getId, initApp, isEditingContextSensitive, namespacePrefixesChanged, undoStateChanged, validityStateChanged
public void applyPreferences()
AppPartBase
AppBase.getPreferences()
.
Default implementation does nothing at all.
applyPreferences
in interface AppPart
applyPreferences
in class AppPartBase
Preferences
public void activeEditorChanged()
AppPartBase
Default implementation does nothing at all.
activeEditorChanged
in interface AppPart
activeEditorChanged
in class AppPartBase
App.getActiveEditor()
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
public void saveStateChanged()
AppPartBase
Default implementation does nothing at all.
saveStateChanged
in interface AppPart
saveStateChanged
in class AppPartBase
App.getActiveOpenedDocument()
,
OpenedDocument.isSaveNeeded()