public class RenameLayerAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
private File |
file |
private Layer |
layer |
changeSupport, enabled
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 and Description |
---|
RenameLayerAction(File file,
Layer layer)
Constructs a new
RenameLayerAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public RenameLayerAction(File file, Layer layer)
RenameLayerAction
.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 renamepublic void actionPerformed(ActionEvent e)