Class DeleteRelationsAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.relation.AbstractRelationAction
-
- org.openstreetmap.josm.actions.relation.DeleteRelationsAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,IPrimitiveAction
,Destroyable
public class DeleteRelationsAction extends AbstractRelationAction
Action that delete relations- Since:
- 5799
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.actions.relation.AbstractRelationAction
relations
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields 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 Constructor Description DeleteRelationsAction()
Constructs a newDeleteRelationsAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
protected void
deleteRelation(Collection<Relation> toDelete)
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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
DeleteRelationsAction
public DeleteRelationsAction()
Constructs a newDeleteRelationsAction
.
-
-
Method Detail
-
deleteRelation
protected void deleteRelation(Collection<Relation> toDelete)
-
actionPerformed
public void actionPerformed(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
-
-