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
|
| 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 |
|---|---|
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, invalidBecauselayerRemovedgetChildren, getDescriptionIcon, getDescriptionTextprivate 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()
CommandundoCommand in class Command