Class WayNodesConflictResolverCommand
java.lang.Object
org.openstreetmap.josm.command.Command
org.openstreetmap.josm.command.conflict.ConflictResolveCommand
org.openstreetmap.josm.command.conflict.WayNodesConflictResolverCommand
- All Implemented Interfaces:
PseudoCommand
Represents the resolution of conflicts in the node list of two
Ways.-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.command.Command
Command.OldNodeState -
Field Summary
FieldsModifier and TypeFieldDescriptionthe conflict to resolvethe list of merged nodes.Fields inherited from class org.openstreetmap.josm.command.Command
IS_INCOMPLETE, IS_OK, IS_OUTSIDE -
Constructor Summary
ConstructorsConstructorDescriptionWayNodesConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict, List<Node> mergedNodeList) Constructs a newWayNodesConflictResolverCommand. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanExecutes the command on the dataset.voidfillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) Fill in the changed data this command operates on.Provides a descriptive icon of this command.Provides a description text representing this command.inthashCode()Methods inherited from class org.openstreetmap.josm.command.conflict.ConflictResolveCommand
reconstituteConflicts, rememberConflict, undoCommandMethods inherited from class org.openstreetmap.josm.command.Command
checkOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, getAffectedDataSet, getOrig, getParticipatingPrimitivesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.command.PseudoCommand
getChildren
-
Field Details
-
conflict
the conflict to resolve -
mergedNodeList
the list of merged nodes. This becomes the list of news of my way after the command is executed
-
-
Constructor Details
-
WayNodesConflictResolverCommand
public WayNodesConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict, List<Node> mergedNodeList) Constructs a newWayNodesConflictResolverCommand.- Parameters:
conflict- the conflict data setmergedNodeList- the list of merged nodes
-
-
Method Details
-
getDescriptionText
Description copied from interface:PseudoCommandProvides a description text representing this command.- Returns:
- description text representing this command
-
getDescriptionIcon
Description copied from interface:PseudoCommandProvides a descriptive icon of this command.- Returns:
- descriptive icon of this command
-
executeCommand
Description copied from class:CommandExecutes the command on the dataset. This implementation will remember all primitives returned by fillModifiedData for restoring them on undo.The layer should be invalidated after execution so that it can be re-painted.
- Overrides:
executeCommandin classCommand- Returns:
- true
-
fillModifiedData
public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) Description copied from class:CommandFill in the changed data this command operates on. Add to the lists, don't clear them.- Specified by:
fillModifiedDatain classCommand- Parameters:
modified- The modified primitivesdeleted- The deleted primitivesadded- The added primitives
-
hashCode
- Overrides:
hashCodein classConflictResolveCommand
-
equals
- Overrides:
equalsin classConflictResolveCommand
-