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
|
IS_INCOMPLETE, IS_OK, IS_OUTSIDE
Constructor and Description |
---|
ConflictResolveCommand()
Constructs a new
ConflictResolveCommand in the context of the current edit layer, if any. |
ConflictResolveCommand(OsmDataLayer layer)
Constructs a new
ConflictResolveCommand in the context of a given data layer. |
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.
|
checkAndConfirmOutlyingOperation, checkOutlyingOrIncompleteOperation, executeCommand, fillModifiedData, getAffectedDataSet, getLayer, getOrig, getParticipatingPrimitives, invalidateAffectedLayers, invalidBecauselayerRemoved
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescriptionIcon, getDescriptionText
private final ConflictCollection resolvedConflicts
public ConflictResolveCommand()
ConflictResolveCommand
in the context of the current edit layer, if any.public ConflictResolveCommand(OsmDataLayer layer)
ConflictResolveCommand
in the context of a given data layer.layer
- the data layer. Must not be null.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