org.openstreetmap.josm.actions
Class RenameLayerAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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

Field Summary
private  java.io.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
RenameLayerAction(java.io.File file, Layer layer)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

private java.io.File file

layer

private Layer layer
Constructor Detail

RenameLayerAction

public RenameLayerAction(java.io.File file,
                         Layer layer)
Parameters:
file - The file of the original location of this layer. If null, no possibility to "rename the file as well" is provided.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)


JOSM