public class DuplicateRelationAction extends AbstractRelationAction
relations
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 |
---|
DuplicateRelationAction()
Constructs a new
DuplicateRelationAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
static void |
duplicateRelationAndLaunchEditor(Relation original)
Duplicates the given relation and launches the relation editor for the created copy.
|
protected void |
updateEnabledState() |
getRelations, setPrimitives
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public DuplicateRelationAction()
DuplicateRelationAction
.public static void duplicateRelationAndLaunchEditor(Relation original)
original
- The relation to duplicatepublic void actionPerformed(ActionEvent e)
protected void updateEnabledState()
updateEnabledState
in class AbstractRelationAction