|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.command.PseudoCommand
org.openstreetmap.josm.command.Command
org.openstreetmap.josm.command.ConflictResolveCommand
org.openstreetmap.josm.command.TagConflictResolveCommand
public class TagConflictResolveCommand
Represents a the resolution of a tag conflict in an OsmPrimitive
Field Summary | |
---|---|
private Conflict<? extends OsmPrimitive> |
conflict
the conflict to resolve |
private java.util.List<TagMergeItem> |
mergeItems
the list of merge decisions, represented as TagMergeItem s |
Constructor Summary | |
---|---|
TagConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict,
java.util.List<TagMergeItem> mergeItems)
constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class org.openstreetmap.josm.command.ConflictResolveCommand |
---|
reconstituteConflicts, rememberConflict, undoCommand |
Methods inherited from class org.openstreetmap.josm.command.Command |
---|
checkAndConfirmOutlyingOperation, getLayer, getOrig, getParticipatingPrimitives, invalidBecauselayerRemoved |
Methods inherited from class org.openstreetmap.josm.command.PseudoCommand |
---|
getChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Conflict<? extends OsmPrimitive> conflict
private final java.util.List<TagMergeItem> mergeItems
TagMergeItem
s
Constructor Detail |
---|
public TagConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict, java.util.List<TagMergeItem> mergeItems)
my
- my primitivetheir
- their primitivemergeItems
- the list of merge decisions, represented as TagMergeItem
sMethod Detail |
---|
public int getNumDecidedConflicts()
public java.lang.String getDescriptionText()
PseudoCommand
getDescriptionText
in class PseudoCommand
public javax.swing.Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon
in class PseudoCommand
public boolean executeCommand()
Command
executeCommand
in class Command
public void fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
Command
fillModifiedData
in class Command
modified
- The modified primitivesdeleted
- The deleted primitivesadded
- The added primitives
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |