Class EditRelationAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.relation.AbstractRelationAction
org.openstreetmap.josm.actions.relation.EditRelationAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,IPrimitiveAction,Destroyable
The action for editing a relation.
- Since:
- 5793
- See Also:
-
Field Summary
Fields inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
relationsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic Set<RelationMember>Returns the set of currently selected relation members for the given relation.static voidlaunchEditor(Relation toEdit) Launches relation editor for the given relation.protected voidOverride 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, setPrimitivesMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
EditRelationAction
public EditRelationAction()Constructs a newEditRelationAction.
-
-
Method Details
-
getMembersForCurrentSelection
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
Launches relation editor for the given relation.- Parameters:
toEdit- The relation to edit
-
actionPerformed
-
updateEnabledState
Description copied from class:AbstractRelationActionOverride in subclasses to update the enabled state of the action when something changes.- Overrides:
updateEnabledStatein classAbstractRelationAction
-