Package org.openstreetmap.josm.actions
Class RenameLayerAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.RenameLayerAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class RenameLayerAction extends AbstractAction
Action to rename an specific layer. Provides the option to rename the file, this layer was loaded from as well (if it was loaded from a file).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RenameLayerAction.InitialValueOptionPane
-
Field Summary
Fields Modifier and Type Field Description private File
file
private Layer
layer
-
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 RenameLayerAction(File file, Layer layer)
Constructs a newRenameLayerAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
RenameLayerAction
public RenameLayerAction(File file, Layer layer)
Constructs a newRenameLayerAction
.- Parameters:
file
- The file of the original location of this layer. If null, no possibility to "rename the file as well" is provided.layer
- layer to rename
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
-