public class TagConflictResolveCommand extends ConflictResolveCommand
OsmPrimitive.Command.OldNodeState| Modifier and Type | Field and Description |
|---|---|
private Conflict<? extends OsmPrimitive> |
conflict
the conflict to resolve
|
private java.util.List<TagMergeItem> |
mergeItems
the list of merge decisions, represented as
TagMergeItems |
IS_INCOMPLETE, IS_OK, IS_OUTSIDE| Constructor and Description |
|---|
TagConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict,
java.util.List<TagMergeItem> mergeItems)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getNumDecidedConflicts()
replies the number of decided conflicts
|
int |
hashCode() |
reconstituteConflicts, rememberConflict, undoCommandcheckOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, getAffectedDataSet, getOrig, getParticipatingPrimitivesclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetChildrenprivate final Conflict<? extends OsmPrimitive> conflict
private final java.util.List<TagMergeItem> mergeItems
TagMergeItemspublic TagConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict, java.util.List<TagMergeItem> mergeItems)
conflict - the conflict data setmergeItems - the list of merge decisions, represented as TagMergeItemspublic int getNumDecidedConflicts()
public java.lang.String getDescriptionText()
PseudoCommandpublic javax.swing.Icon getDescriptionIcon()
PseudoCommandpublic boolean executeCommand()
CommandThe layer should be invalidated after execution so that it can be re-painted.
executeCommand in class Commandpublic void fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
CommandfillModifiedData in class Commandmodified - The modified primitivesdeleted - The deleted primitivesadded - The added primitivespublic int hashCode()
hashCode in class ConflictResolveCommandpublic boolean equals(java.lang.Object obj)
equals in class ConflictResolveCommand