Class ExportProfileAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.preferences.advanced.ExportProfileAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class ExportProfileAction extends javax.swing.AbstractAction
Action that exports some fragment of settings to custom configuration file- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
prefPattern
private Preferences
prefs
private java.lang.String
schemaKey
-
Constructor Summary
Constructors Constructor Description ExportProfileAction(Preferences prefs, java.lang.String schemaKey, java.lang.String prefPattern)
Constructs a newExportProfileAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ae)
private java.io.File
askUserForCustomSettingsFile()
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
prefPattern
private final java.lang.String prefPattern
-
schemaKey
private final java.lang.String schemaKey
-
prefs
private final transient Preferences prefs
-
-
Constructor Detail
-
ExportProfileAction
public ExportProfileAction(Preferences prefs, java.lang.String schemaKey, java.lang.String prefPattern)
Constructs a newExportProfileAction
.- Parameters:
prefs
- preferencesschemaKey
- filename prefixprefPattern
- preference key pattern used to determine which entries are exported
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
-
askUserForCustomSettingsFile
private java.io.File askUserForCustomSettingsFile()
-
-