Changeset 6887 in josm for trunk/src/org/openstreetmap/josm/command/conflict
- Timestamp:
- 2014-02-26T23:45:59+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command/conflict
- Files:
-
- 2 added
- 9 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/conflict/ConflictAddCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; … … 10 10 11 11 import org.openstreetmap.josm.Main; 12 import org.openstreetmap.josm.command.Command; 12 13 import org.openstreetmap.josm.data.conflict.Conflict; 13 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 16 17 import org.openstreetmap.josm.tools.ImageProvider; 17 18 19 /** 20 * Command used to add a new conflict. 21 * @since 1857 22 */ 18 23 public class ConflictAddCommand extends Command { 19 24 private Conflict<? extends OsmPrimitive> conflict; 20 25 26 /** 27 * Constructs a new {@code ConflictAddCommand}. 28 * @param layer the data layer. Must not be null. 29 * @param conflict the conflict to add 30 */ 21 31 public ConflictAddCommand(OsmDataLayer layer, Conflict<? extends OsmPrimitive> conflict) { 22 32 super(layer); … … 37 47 ); 38 48 } 39 @Override public boolean executeCommand() { 49 50 @Override 51 public boolean executeCommand() { 40 52 try { 41 53 getLayer().getConflicts().add(conflict); … … 47 59 } 48 60 49 @Override public void undoCommand() { 61 @Override 62 public void undoCommand() { 50 63 if (! Main.map.mapView.hasLayer(getLayer())) { 51 64 Main.warn(tr("Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.", … … 58 71 } 59 72 60 @Override public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) { 73 @Override 74 public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) { 61 75 // nothing to fill 62 76 } -
trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 6 import org.openstreetmap.josm.Main; 7 import org.openstreetmap.josm.command.Command; 7 8 import org.openstreetmap.josm.data.conflict.Conflict; 8 9 import org.openstreetmap.josm.data.conflict.ConflictCollection; -
trunk/src/org/openstreetmap/josm/command/conflict/CoordinateConflictResolveCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; -
trunk/src/org/openstreetmap/josm/command/conflict/DeletedStateConflictResolveCommand.java
r6886 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; -
trunk/src/org/openstreetmap/josm/command/conflict/ModifiedConflictResolveCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.marktr; -
trunk/src/org/openstreetmap/josm/command/conflict/RelationMemberConflictResolverCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; -
trunk/src/org/openstreetmap/josm/command/conflict/TagConflictResolveCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.trn; -
trunk/src/org/openstreetmap/josm/command/conflict/VersionConflictResolveCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.marktr; -
trunk/src/org/openstreetmap/josm/command/conflict/WayNodesConflictResolverCommand.java
r6884 r6887 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.command; 2 package org.openstreetmap.josm.command.conflict; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr;
Note:
See TracChangeset
for help on using the changeset viewer.