public class RelationMemberConflictResolverCommand extends ConflictResolveCommand
Relation
s.Command.OldNodeState
Modifier and Type | Field and Description |
---|---|
private Conflict<Relation> |
conflict
the conflict to resolve
|
private java.util.List<RelationMember> |
mergedMembers
the list of merged nodes.
|
IS_INCOMPLETE, IS_OK, IS_OUTSIDE
Constructor and Description |
---|
RelationMemberConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict,
java.util.List<RelationMember> mergedMembers)
Constructs a new
RelationMemberConflictResolverCommand . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
executeCommand()
Executes the command on the dataset.
|
void |
fillModifiedData(java.util.Collection<OsmPrimitive> modified,
java.util.Collection<OsmPrimitive> deleted,
java.util.Collection<OsmPrimitive> added)
Fill in the changed data this command operates on.
|
javax.swing.Icon |
getDescriptionIcon()
Provides a descriptive icon of this command.
|
java.lang.String |
getDescriptionText()
Provides a description text representing this command.
|
int |
hashCode() |
void |
undoCommand()
Undoes the command.
|
reconstituteConflicts, rememberConflict
checkAndConfirmOutlyingOperation, checkOutlyingOrIncompleteOperation, getAffectedDataSet, getLayer, getOrig, getParticipatingPrimitives, invalidateAffectedLayers, invalidBecauselayerRemoved
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getChildren
private final java.util.List<RelationMember> mergedMembers
public RelationMemberConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict, java.util.List<RelationMember> mergedMembers)
RelationMemberConflictResolverCommand
.conflict
- the conflict to resolvemergedMembers
- the list of merged relation memberspublic java.lang.String getDescriptionText()
PseudoCommand
public javax.swing.Icon getDescriptionIcon()
PseudoCommand
public boolean executeCommand()
Command
The layer should be invalidated after execution so that it can be re-painted.
executeCommand
in class Command
Command.invalidateAffectedLayers()
public void fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
Command
fillModifiedData
in class Command
modified
- The modified primitivesdeleted
- The deleted primitivesadded
- The added primitivespublic void undoCommand()
Command
undoCommand
in class ConflictResolveCommand
public int hashCode()
hashCode
in class ConflictResolveCommand
public boolean equals(java.lang.Object obj)
equals
in class ConflictResolveCommand