public class DuplicateRelationAction extends AbstractRelationAction
relations| Constructor and Description |
|---|
DuplicateRelationAction()
Constructs a new
DuplicateRelationAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static void |
duplicateRelationAndLaunchEditor(Relation original)
Duplicates the given relation and launches the relation editor for the created copy.
|
private static boolean |
isEditableRelation(IRelation<?> r) |
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when something changes.
|
canDownload, getRelations, setHelpId, setPrimitivesaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic DuplicateRelationAction()
DuplicateRelationAction.public static void duplicateRelationAndLaunchEditor(Relation original)
original - The relation to duplicatepublic void actionPerformed(java.awt.event.ActionEvent e)
private static boolean isEditableRelation(IRelation<?> r)
protected void updateEnabledState()
AbstractRelationActionupdateEnabledState in class AbstractRelationAction