Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/command/conflict
- Timestamp:
- 2015-06-20T23:42:21+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command/conflict
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/conflict/ConflictAddCommand.java
r8456 r8510 52 52 try { 53 53 getLayer().getConflicts().add(conflict); 54 } catch(IllegalStateException e) { 54 } catch (IllegalStateException e) { 55 55 Main.error(e); 56 56 warnBecauseOfDoubleConflict(); -
trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java
r8456 r8510 57 57 protected void reconstituteConflicts() { 58 58 OsmDataLayer editLayer = getLayer(); 59 for(Conflict<?> c : resolvedConflicts) { 59 for (Conflict<?> c : resolvedConflicts) { 60 60 if (!editLayer.getConflicts().hasConflictForMy(c.getMy())) { 61 61 editLayer.getConflicts().add(c); -
trunk/src/org/openstreetmap/josm/command/conflict/CoordinateConflictResolveCommand.java
r8456 r8510 49 49 @Override 50 50 public boolean executeCommand() { 51 // remember the current state of modified primitives, i.e. of 52 // OSM primitive 'my' 53 // 51 // remember the current state of modified primitives, i.e. of OSM primitive 'my' 54 52 super.executeCommand(); 55 53 … … 57 55 // do nothing 58 56 } else if (decision.equals(MergeDecisionType.KEEP_THEIR)) { 59 Node my = (Node)conflict.getMy(); 60 Node their = (Node)conflict.getTheir(); 57 Node my = (Node) conflict.getMy(); 58 Node their = (Node) conflict.getTheir(); 61 59 my.setCoor(their.getCoor()); 62 60 } else … … 65 63 66 64 // remember the layer this command was applied to 67 //68 65 rememberConflict(conflict); 69 66 -
trunk/src/org/openstreetmap/josm/command/conflict/ModifiedConflictResolveCommand.java
r8456 r8510 40 40 case RELATION: msg = marktr("Set the ''modified'' flag for relation {0}"); break; 41 41 } 42 return tr(msg,conflict.getMy().getId()); 42 return tr(msg, conflict.getMy().getId()); 43 43 } 44 44 -
trunk/src/org/openstreetmap/josm/command/conflict/RelationMemberConflictResolverCommand.java
r8456 r8510 92 92 // 93 93 if (!editLayer.getConflicts().hasConflictForMy(my)) { 94 editLayer.getConflicts().add(my,their); 94 editLayer.getConflicts().add(my, their); 95 95 } 96 96 } -
trunk/src/org/openstreetmap/josm/command/conflict/VersionConflictResolveCommand.java
r8456 r8510 56 56 conflict.getMy().setOsmId( 57 57 conflict.getMy().getId(), 58 (int)Math.max(myVersion, theirVersion) 58 (int) Math.max(myVersion, theirVersion) 59 59 ); 60 60 // update visiblity state
Note:
See TracChangeset
for help on using the changeset viewer.