Changeset 2181 in josm for trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
- Timestamp:
- 2009-09-22T15:34:19+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r2044 r2181 140 140 public TagTableModel getTagTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException { 141 141 if (pointInTimeType == null) 142 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "pointInTimeType"));142 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "pointInTimeType")); 143 143 if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME)) 144 144 return currentTagTableModel; … … 152 152 public NodeListTableModel getNodeListTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException { 153 153 if (pointInTimeType == null) 154 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "pointInTimeType"));154 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "pointInTimeType")); 155 155 if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME)) 156 156 return currentNodeListTableModel; … … 164 164 public RelationMemberTableModel getRelationMemberTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException { 165 165 if (pointInTimeType == null) 166 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "pointInTimeType"));166 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "pointInTimeType")); 167 167 if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME)) 168 168 return currentRelationMemberTableModel; … … 176 176 public void setReferencePointInTime(HistoryOsmPrimitive reference) throws IllegalArgumentException, IllegalStateException{ 177 177 if (reference == null) 178 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "reference"));178 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "reference")); 179 179 if (history == null) 180 throw new IllegalStateException(tr(" history not initialized yet. Failed to set reference primitive."));180 throw new IllegalStateException(tr("History not initialized yet. Failed to set reference primitive.")); 181 181 if (reference.getId() != history.getId()) 182 throw new IllegalArgumentException(tr(" failed to set reference. reference id {0} doesn't match history id {1}", reference.getId(), history.getId()));182 throw new IllegalArgumentException(tr("Failed to set reference. Reference ID {0} does not match history ID {1}.", reference.getId(), history.getId())); 183 183 HistoryOsmPrimitive primitive = history.getByVersion(reference.getVersion()); 184 184 if (primitive == null) 185 throw new IllegalArgumentException(tr(" failed to set reference. reference version {0} not available in history", reference.getVersion()));185 throw new IllegalArgumentException(tr("Failed to set reference. Reference version {0} not available in history.", reference.getVersion())); 186 186 187 187 this.reference = reference; … … 195 195 public void setCurrentPointInTime(HistoryOsmPrimitive current) throws IllegalArgumentException, IllegalStateException{ 196 196 if (current == null) 197 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "current"));197 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "current")); 198 198 if (history == null) 199 throw new IllegalStateException(tr(" history not initialized yet. Failed to set current primitive."));199 throw new IllegalStateException(tr("History not initialized yet. Failed to set current primitive.")); 200 200 if (current.getId() != history.getId()) 201 throw new IllegalArgumentException(tr(" failed to set reference. reference id {0} doesn't match history id {1}", current.getId(), history.getId()));201 throw new IllegalArgumentException(tr("Hailed to set reference. Reference ID {0} does not match history ID {1}.", current.getId(), history.getId())); 202 202 HistoryOsmPrimitive primitive = history.getByVersion(current.getVersion()); 203 203 if (primitive == null) 204 throw new IllegalArgumentException(tr(" failed to set current. current version {0} not available in history", current.getVersion()));204 throw new IllegalArgumentException(tr("Failed to set current primitive. Current version {0} not available in history.", current.getVersion())); 205 205 this.current = current; 206 206 initTagTableModels(); … … 238 238 public HistoryOsmPrimitive getPointInTime(PointInTimeType type) throws IllegalArgumentException { 239 239 if (type == null) 240 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "type"));240 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "type")); 241 241 if (type.equals(PointInTimeType.CURRENT_POINT_IN_TIME)) 242 242 return current;
Note:
See TracChangeset
for help on using the changeset viewer.