Package org.openstreetmap.josm.actions
Class SaveAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.DiskAccessAction
org.openstreetmap.josm.actions.SaveActionBase
org.openstreetmap.josm.actions.SaveAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,Destroyable
Export the data as an OSM xml file.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SaveActionprivate final PropertyChangeListenerFields inherited from class org.openstreetmap.josm.actions.JosmAction
scFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JosmAction.LayerChangeAdapterOverride this if callingJosmAction.updateEnabledState()on layer change events is not enough.static SaveActionReturns the unique instance.protected booleanOverwrite this ifJosmAction.updateEnabledState()should be called when the selection changed.Methods inherited from class org.openstreetmap.josm.actions.SaveActionBase
actionPerformed, addToFileOpenHistory, checkFileAndConfirmOverWrite, confirmOverwrite, createAndOpenSaveFileChooser, createAndOpenSaveFileChooser, doSave, doSave, doSave, doSave, doSave, showAndLogException, updateEnabledStateMethods inherited from class org.openstreetmap.josm.actions.DiskAccessAction
createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, showSavedNotification, showSavingNotificationMethods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
instance
-
updateOnRequireSaveChange
-
-
Constructor Details
-
SaveAction
private SaveAction()Construct the action with "Save" as label.
-
-
Method Details
-
getInstance
Returns the unique instance.- Returns:
- the unique instance
-
buildLayerChangeAdapter
Description copied from class:JosmActionOverride this if callingJosmAction.updateEnabledState()on layer change events is not enough.- Overrides:
buildLayerChangeAdapterin classJosmAction- Returns:
- the
JosmAction.LayerChangeAdapterthat will be called on layer change events
-
listenToSelectionChange
Description copied from class:JosmActionOverwrite this ifJosmAction.updateEnabledState()should be called when the selection changed. Default is true.- Overrides:
listenToSelectionChangein classSaveActionBase- Returns:
trueif aDataSelectionListenershould be registered.
-
getFile
- Specified by:
getFilein classSaveActionBase
-