Changeset 6887 in josm
- Timestamp:
- 2014-02-26T23:45:59+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 added
- 6 edited
- 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; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ConflictResolver.java
r6883 r6887 16 16 17 17 import org.openstreetmap.josm.command.Command; 18 import org.openstreetmap.josm.command.ModifiedConflictResolveCommand;19 18 import org.openstreetmap.josm.command.SequenceCommand; 20 import org.openstreetmap.josm.command.VersionConflictResolveCommand; 19 import org.openstreetmap.josm.command.conflict.ModifiedConflictResolveCommand; 20 import org.openstreetmap.josm.command.conflict.VersionConflictResolveCommand; 21 21 import org.openstreetmap.josm.data.conflict.Conflict; 22 22 import org.openstreetmap.josm.data.osm.Node; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModel.java
r5903 r6887 9 9 import javax.swing.table.DefaultTableModel; 10 10 11 import org.openstreetmap.josm.command. WayNodesConflictResolverCommand;11 import org.openstreetmap.josm.command.conflict.WayNodesConflictResolverCommand; 12 12 import org.openstreetmap.josm.data.conflict.Conflict; 13 13 import org.openstreetmap.josm.data.osm.Node; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMergeModel.java
r6883 r6887 12 12 13 13 import org.openstreetmap.josm.command.Command; 14 import org.openstreetmap.josm.command. CoordinateConflictResolveCommand;15 import org.openstreetmap.josm.command. DeletedStateConflictResolveCommand;14 import org.openstreetmap.josm.command.conflict.CoordinateConflictResolveCommand; 15 import org.openstreetmap.josm.command.conflict.DeletedStateConflictResolveCommand; 16 16 import org.openstreetmap.josm.data.conflict.Conflict; 17 17 import org.openstreetmap.josm.data.coor.LatLon; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberListMergeModel.java
r5301 r6887 9 9 import javax.swing.table.DefaultTableModel; 10 10 11 import org.openstreetmap.josm.command. RelationMemberConflictResolverCommand;11 import org.openstreetmap.josm.command.conflict.RelationMemberConflictResolverCommand; 12 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; 13 13 import org.openstreetmap.josm.data.osm.PrimitiveId; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeModel.java
r6883 r6887 11 11 import javax.swing.table.DefaultTableModel; 12 12 13 import org.openstreetmap.josm.command. TagConflictResolveCommand;13 import org.openstreetmap.josm.command.conflict.TagConflictResolveCommand; 14 14 import org.openstreetmap.josm.data.conflict.Conflict; 15 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r6798 r6887 60 60 import org.openstreetmap.josm.command.ChangeCommand; 61 61 import org.openstreetmap.josm.command.Command; 62 import org.openstreetmap.josm.command. ConflictAddCommand;62 import org.openstreetmap.josm.command.conflict.ConflictAddCommand; 63 63 import org.openstreetmap.josm.data.conflict.Conflict; 64 64 import org.openstreetmap.josm.data.osm.DataSet;
Note:
See TracChangeset
for help on using the changeset viewer.