Package org.openstreetmap.josm.actions
Class RenameLayerAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.RenameLayerAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class RenameLayerAction extends javax.swing.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
-
Constructor Summary
Constructors Constructor Description RenameLayerAction(java.io.File file, Layer layer)
Constructs a newRenameLayerAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
RenameLayerAction
public RenameLayerAction(java.io.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(java.awt.event.ActionEvent e)
-
-