|
||||||||||
| 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.RelationMemberConflictResolverCommand
public class RelationMemberConflictResolverCommand
Represent a command for resolving conflicts in the member lists of two
Relations.
| Field Summary | |
|---|---|
private OsmDataLayer |
layer
the layer this conflict is resolved in |
private java.util.List<RelationMember> |
mergedMembers
the list of merged nodes. |
private Relation |
my
my relation |
private Relation |
their
their relation |
| Constructor Summary | |
|---|---|
RelationMemberConflictResolverCommand(Relation my,
Relation their,
java.util.List<RelationMember> mergedMembers)
|
|
| 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. |
void |
undoCommand()
Undoes the command. |
| 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 final Relation my
private final Relation their
private final java.util.List<RelationMember> mergedMembers
private OsmDataLayer layer
| Constructor Detail |
|---|
public RelationMemberConflictResolverCommand(Relation my,
Relation their,
java.util.List<RelationMember> mergedMembers)
my - my relationtheir - their relationmergedNodeList - the list of merged relation members| Method Detail |
|---|
public java.lang.String getDescriptionText()
PseudoCommand
getDescriptionText in class PseudoCommandpublic javax.swing.Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon in class PseudoCommandpublic 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 Commandmodified - The modified primitivesdeleted - The deleted primitivesadded - The added primitivespublic void undoCommand()
Command
undoCommand in class Command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||