Class ExportProfileAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.preferences.advanced.ExportProfileAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class ExportProfileAction extends 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 String
prefPattern
private Preferences
prefs
private String
schemaKey
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields 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 Constructor Description ExportProfileAction(Preferences prefs, String schemaKey, String prefPattern)
Constructs a newExportProfileAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent ae)
private File
askUserForCustomSettingsFile()
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
prefPattern
private final String prefPattern
-
prefs
private final transient Preferences prefs
-
-
Constructor Detail
-
ExportProfileAction
public ExportProfileAction(Preferences prefs, String schemaKey, 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(ActionEvent ae)
-
askUserForCustomSettingsFile
private File askUserForCustomSettingsFile()
-
-