Class EditRelationAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.relation.AbstractRelationAction
-
- org.openstreetmap.josm.actions.relation.EditRelationAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,IPrimitiveAction
,Destroyable
public class EditRelationAction extends AbstractRelationAction
The action for editing a relation.- Since:
- 5793
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
relations
-
-
Constructor Summary
Constructors Constructor Description EditRelationAction()
Constructs a newEditRelationAction
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
static java.util.Set<RelationMember>
getMembersForCurrentSelection(Relation r)
Returns the set of currently selected relation members for the given relation.static void
launchEditor(Relation toEdit)
Launches relation editor for the given relation.protected void
updateEnabledState()
Override in subclasses to update the enabled state of the action when something changes.-
Methods inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
canDownload, canModify, destroy, getRelations, setHelpId, setPrimitives
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
EditRelationAction
public EditRelationAction()
Constructs a newEditRelationAction
.
-
-
Method Detail
-
getMembersForCurrentSelection
public static java.util.Set<RelationMember> getMembersForCurrentSelection(Relation r)
Returns the set of currently selected relation members for the given relation.- Parameters:
r
- The relation to inspect- Returns:
- The set of currently selected relation members for the given relation.
-
launchEditor
public static void launchEditor(Relation toEdit)
Launches relation editor for the given relation.- Parameters:
toEdit
- The relation to edit
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
updateEnabledState
protected void updateEnabledState()
Description copied from class:AbstractRelationAction
Override in subclasses to update the enabled state of the action when something changes.- Overrides:
updateEnabledState
in classAbstractRelationAction
-
-