Changeset 2181 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags
- Timestamp:
- 2009-09-22T15:34:19+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeItem.java
r2165 r2181 31 31 public TagMergeItem(String key, String myTagValue, String theirTagValue) { 32 32 if (key == null) { 33 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "key"));33 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "key")); 34 34 } 35 35 this.key = key; … … 50 50 */ 51 51 public TagMergeItem(String key, OsmPrimitive my, OsmPrimitive their) { 52 if (key == null) throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "key"));53 if (my == null) throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "my"));54 if (their == null) throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "their"));52 if (key == null) throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "key")); 53 if (my == null) throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "my")); 54 if (their == null) throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "their")); 55 55 this.key = key; 56 56 myTagValue = my.get(key); … … 66 66 */ 67 67 public void decide(MergeDecisionType decision) throws IllegalArgumentException { 68 if (decision == null) throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "decision"));68 if (decision == null) throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "decision")); 69 69 this.mergeDecision = decision; 70 70 } … … 96 96 */ 97 97 public void applyToMyPrimitive(OsmPrimitive primitive) throws IllegalArgumentException, IllegalStateException { 98 if (primitive == null) throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "primitive"));98 if (primitive == null) throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "primitive")); 99 99 if (mergeDecision == MergeDecisionType.UNDECIDED) { 100 throw new IllegalStateException(tr(" cannot apply undecided tag merge item"));100 throw new IllegalStateException(tr("Cannot apply undecided tag merge item.")); 101 101 } else if (mergeDecision == MergeDecisionType.KEEP_THEIR) { 102 102 if (theirTagValue == null) { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeTableCellRenderer.java
r2017 r2181 37 37 default: 38 38 // should not happen, but just in case 39 throw new IllegalArgumentException(tr("Parameter 'col' must be 0 or 1. Got {0} ", col));39 throw new IllegalArgumentException(tr("Parameter 'col' must be 0 or 1. Got {0}.", col)); 40 40 } 41 41 return this;
Note:
See TracChangeset
for help on using the changeset viewer.