public abstract class ConflictResolveCommand extends Command
Command
s which manipulate Conflict
s in
addition to OsmPrimitive
s.
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
|
Constructor and Description |
---|
ConflictResolveCommand() |
ConflictResolveCommand(OsmDataLayer layer) |
Modifier and Type | Method and Description |
---|---|
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.
|
checkAndConfirmOutlyingOperation, executeCommand, fillModifiedData, getLayer, getOrig, getParticipatingPrimitives, invalidBecauselayerRemoved
getChildren, getDescriptionIcon, getDescriptionText
private ConflictCollection resolvedConflicts
public ConflictResolveCommand()
public ConflictResolveCommand(OsmDataLayer layer)
protected void rememberConflict(Conflict<?> c)
c
- the remembered conflictprotected void reconstituteConflicts()
OsmDataLayer
this command was applied to.public void undoCommand()
Command
undoCommand
in class Command