public final class SaveAction extends SaveActionBase
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter| Modifier and Type | Field and Description |
|---|---|
private static SaveAction |
instance |
private java.beans.PropertyChangeListener |
updateOnRequireSaveChange |
private GpxData.GpxDataChangeListener |
updateOnRequireSaveChangeGpx |
sc| Modifier | Constructor and Description |
|---|---|
private |
SaveAction()
Construct the action with "Save" as label.
|
| Modifier and Type | Method and Description |
|---|---|
protected JosmAction.LayerChangeAdapter |
buildLayerChangeAdapter()
Override this if calling
JosmAction.updateEnabledState() on layer change events is not enough. |
java.io.File |
getFile(Layer layer) |
static SaveAction |
getInstance()
Returns the unique instance.
|
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
actionPerformed, addToFileOpenHistory, checkFileAndConfirmOverWrite, confirmOverwrite, createAndOpenSaveFileChooser, createAndOpenSaveFileChooser, doSave, doSave, doSave, doSave, doSave, showAndLogExceptioncreateAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooserbuildActiveLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureprivate static SaveAction instance
private final java.beans.PropertyChangeListener updateOnRequireSaveChange
private final GpxData.GpxDataChangeListener updateOnRequireSaveChangeGpx
private SaveAction()
public static SaveAction getInstance()
protected JosmAction.LayerChangeAdapter buildLayerChangeAdapter()
JosmActionJosmAction.updateEnabledState() on layer change events is not enough.buildLayerChangeAdapter in class JosmActionJosmAction.LayerChangeAdapter that will be called on layer change eventsprotected void updateEnabledState()
JosmActionJosmAction.updateEnabledState(Collection) to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState in class SaveActionBaseJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState(),
JosmAction.listenToLayerChange()public java.io.File getFile(Layer layer)
getFile in class SaveActionBase