Changeset 2198 in josm for trunk/src/org/openstreetmap/josm/command/ConflictResolveCommand.java
- Timestamp:
- 2009-09-27T16:29:21+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/ConflictResolveCommand.java
r2163 r2198 12 12 13 13 /** 14 * This is the common bas se class for {@see Command}s which manipulate {@see Conflict}s in14 * This is the common base class for {@see Command}s which manipulate {@see Conflict}s in 15 15 * addition to {@see OsmPrimitive}s. 16 16 * 17 17 * A ConflictResolverCommand can remember a collection of conflicts it resolves. Upon undoing 18 * it reconstitutes the se conflicts.18 * it reconstitutes them. 19 19 * 20 20 */ … … 30 30 } 31 31 32 public ConflictResolveCommand(OsmDataLayer layer) { 33 super(layer); 34 resolvedConflicts = new ConflictCollection(); 35 } 36 32 37 /** 33 38 * remembers a conflict in the internal list of remembered conflicts … … 35 40 * @param c the remembered conflict 36 41 */ 37 protected void rememberConflict(Conflict c) { 42 protected void rememberConflict(Conflict<?> c) { 38 43 if (! resolvedConflicts.hasConflictForMy(c.getMy())) { 39 44 resolvedConflicts.add(c); … … 48 53 protected void reconstituteConflicts() { 49 54 OsmDataLayer editLayer = getLayer(); 50 for(Conflict c : resolvedConflicts) { 55 for(Conflict<?> c : resolvedConflicts) { 51 56 if (!editLayer.getConflicts().hasConflictForMy(c.getMy())) { 52 57 editLayer.getConflicts().add(c); … … 60 65 61 66 if (! Main.map.mapView.hasLayer(getLayer())) { 62 logger.warning(tr("Can't undo command ''{0}'' because layer ''{1}'' is not present any more", 67 logger.warning(tr("Can''t undo command ''{0}'' because layer ''{1}'' is not present any more", 63 68 this.toString(), 64 69 getLayer().toString() … … 70 75 reconstituteConflicts(); 71 76 } 72 73 74 75 77 }
Note:
See TracChangeset
for help on using the changeset viewer.
