public final class DuplicateAction extends javax.swing.AbstractAction implements IEnabledStateUpdating
Modifier and Type | Field and Description |
---|---|
private Layer |
layer |
private LayerListDialog.LayerListModel |
model |
Constructor and Description |
---|
DuplicateAction(Layer layer,
LayerListDialog.LayerListModel model)
Constructs a new
DuplicateAction . |
DuplicateAction(LayerListDialog.LayerListModel model)
Constructs a new
DuplicateAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private static void |
duplicate(Layer layer) |
void |
updateEnabledState()
Called after the layer model has changed.
|
private final LayerListDialog.LayerListModel model
public DuplicateAction(Layer layer, LayerListDialog.LayerListModel model)
DuplicateAction
.layer
- the layermodel
- layer list modeljava.lang.IllegalArgumentException
- if layer
is nullpublic DuplicateAction(LayerListDialog.LayerListModel model)
DuplicateAction
.model
- layer list modelpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void updateEnabledState()
IEnabledStateUpdating
updateEnabledState
in interface IEnabledStateUpdating