Class DeleteRelationsAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.relation.AbstractRelationAction
-
- org.openstreetmap.josm.actions.relation.DeleteRelationsAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.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
-
-
Constructor Summary
Constructors Constructor Description DeleteRelationsAction()
Constructs a newDeleteRelationsAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected void
deleteRelation(java.util.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
-
-
-
-
Constructor Detail
-
DeleteRelationsAction
public DeleteRelationsAction()
Constructs a newDeleteRelationsAction
.
-
-
Method Detail
-
deleteRelation
protected void deleteRelation(java.util.Collection<Relation> toDelete)
-
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
-
-