Class DownloadSelectedIncompleteMembersAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.relation.AbstractRelationAction
org.openstreetmap.josm.actions.relation.DownloadSelectedIncompleteMembersAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,IPrimitiveAction,Destroyable
Action for downloading incomplete members of selected relations
- Since:
- 5793
- See Also:
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionConstructs a newDownloadSelectedIncompleteMembersAction. -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic Set<IPrimitive>buildSetOfIncompleteMembers(Collection<IRelation<?>> rels) Returns the set of incomplete members of the given relations.voidsetPrimitives(Collection<? extends IPrimitive> primitives) Specifies the working set of primitives.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, setHelpIdMethods 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
-
Field Details
-
incompleteMembers
-
-
Constructor Details
-
DownloadSelectedIncompleteMembersAction
Constructs a newDownloadSelectedIncompleteMembersAction.
-
-
Method Details
-
buildSetOfIncompleteMembers
Returns the set of incomplete members of the given relations.- Parameters:
rels- The relations to inspect.- Returns:
- The set of incomplete members of the given relations.
-
actionPerformed
-
setPrimitives
Description copied from interface:IPrimitiveActionSpecifies the working set of primitives.- Specified by:
setPrimitivesin interfaceIPrimitiveAction- Overrides:
setPrimitivesin classAbstractRelationAction- Parameters:
primitives- The new working set of primitives. Can be null or empty
-
updateEnabledState
Description copied from class:AbstractRelationActionOverride in subclasses to update the enabled state of the action when something changes.- Overrides:
updateEnabledStatein classAbstractRelationAction
-