public class DeletedStateConflictResolveCommand extends ConflictResolveCommand
OsmPrimitive
s.Command.OldNodeState
Modifier and Type | Field and Description |
---|---|
private Conflict<? extends OsmPrimitive> |
conflict
the conflict to resolve
|
private MergeDecisionType |
decision
the merge decision
|
Constructor and Description |
---|
DeletedStateConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict,
MergeDecisionType decision)
Constructs a new
DeletedStateConflictResolveCommand . |
Modifier and Type | Method and Description |
---|---|
private void |
deleteMy() |
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() |
reconstituteConflicts, rememberConflict, undoCommand
checkAndConfirmOutlyingOperation, getLayer, getOrig, getParticipatingPrimitives, invalidBecauselayerRemoved
getChildren
private final Conflict<? extends OsmPrimitive> conflict
private final MergeDecisionType decision
public DeletedStateConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict, MergeDecisionType decision)
DeletedStateConflictResolveCommand
.conflict
- the conflict data setdecision
- the merge decisionpublic java.lang.String getDescriptionText()
PseudoCommand
getDescriptionText
in class PseudoCommand
public javax.swing.Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon
in class PseudoCommand
public boolean executeCommand()
Command
executeCommand
in class Command
private void deleteMy()
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 int hashCode()
hashCode
in class ConflictResolveCommand
public boolean equals(java.lang.Object obj)
equals
in class ConflictResolveCommand