public abstract class ConflictResolveCommand extends Command
Commands which manipulate Conflicts in
addition to OsmPrimitives.
A ConflictResolverCommand can remember a collection of conflicts it resolves. Upon undoing
it reconstitutes them.Command.OldNodeState| Modifier and Type | Field and Description |
|---|---|
private ConflictCollection |
resolvedConflicts
the list of resolved conflicts
|
IS_INCOMPLETE, IS_OK, IS_OUTSIDE| Constructor and Description |
|---|
ConflictResolveCommand(DataSet ds)
Constructs a new
ConflictResolveCommand in the context of a given data set. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
protected void |
reconstituteConflicts()
reconstitutes all remembered conflicts.
|
protected void |
rememberConflict(Conflict<?> c)
remembers a conflict in the internal list of remembered conflicts
|
void |
undoCommand()
Undoes the command.
|
checkOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, executeCommand, fillModifiedData, getAffectedDataSet, getOrig, getParticipatingPrimitivesclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetChildren, getDescriptionIcon, getDescriptionTextprivate final ConflictCollection resolvedConflicts
public ConflictResolveCommand(DataSet ds)
ConflictResolveCommand in the context of a given data set.ds - the data set. Must not be null.protected void rememberConflict(Conflict<?> c)
c - the remembered conflictprotected void reconstituteConflicts()
DataSet this command was applied to.public void undoCommand()
CommandundoCommand in class Command