public class RelationMemberConflictResolverCommand extends ConflictResolveCommand
Relations.Command.OldNodeState| Modifier and Type | Field and Description |
|---|---|
private java.util.List<RelationMember> |
mergedMembers
the list of merged nodes.
|
private Relation |
my
my relation
|
private Relation |
their
their relation
|
| Constructor and Description |
|---|
RelationMemberConflictResolverCommand(Relation my,
Relation their,
java.util.List<RelationMember> mergedMembers) |
| 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, rememberConflictcheckAndConfirmOutlyingOperation, getAffectedDataSet, getLayer, getOrig, getParticipatingPrimitives, invalidateAffectedLayers, invalidBecauselayerRemovedgetChildrenprivate final java.util.List<RelationMember> mergedMembers
public RelationMemberConflictResolverCommand(Relation my, Relation their, java.util.List<RelationMember> mergedMembers)
my - my relationtheir - their relationmergedMembers - the list of merged relation memberspublic java.lang.String getDescriptionText()
PseudoCommandgetDescriptionText in class PseudoCommandpublic javax.swing.Icon getDescriptionIcon()
PseudoCommandgetDescriptionIcon in class PseudoCommandpublic boolean executeCommand()
CommandThe layer should be invalidated after execution so that it can be re-painted.
executeCommand in class CommandCommand.invalidateAffectedLayers()public void fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
CommandfillModifiedData in class Commandmodified - The modified primitivesdeleted - The deleted primitivesadded - The added primitivespublic void undoCommand()
CommandundoCommand in class ConflictResolveCommandpublic int hashCode()
hashCode in class ConflictResolveCommandpublic boolean equals(java.lang.Object obj)
equals in class ConflictResolveCommand