Changeset 10109 in josm for trunk/src/org/openstreetmap/josm/gui/history
- Timestamp:
- 2016-04-04T23:13:08+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r9942 r10109 242 242 243 243 /** 244 * replies the tag table model for the respective point in time244 * Replies the tag table model for the respective point in time. 245 245 * 246 246 * @param pointInTimeType the type of the point in time (must not be null) … … 252 252 if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME)) 253 253 return currentTagTableModel; 254 else if (pointInTimeType.equals(PointInTimeType.REFERENCE_POINT_IN_TIME))254 else // REFERENCE_POINT_IN_TIME 255 255 return referenceTagTableModel; 256 257 // should not happen 258 return null; 259 } 260 256 } 257 258 /** 259 * Replies the node list table model for the respective point in time. 260 * 261 * @param pointInTimeType the type of the point in time (must not be null) 262 * @return the node list table model 263 * @throws IllegalArgumentException if pointInTimeType is null 264 */ 261 265 public DiffTableModel getNodeListTableModel(PointInTimeType pointInTimeType) { 262 266 CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType"); 263 267 if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME)) 264 268 return currentNodeListTableModel; 265 else if (pointInTimeType.equals(PointInTimeType.REFERENCE_POINT_IN_TIME))269 else // REFERENCE_POINT_IN_TIME 266 270 return referenceNodeListTableModel; 267 268 // should not happen 269 return null; 270 } 271 271 } 272 273 /** 274 * Replies the relation member table model for the respective point in time. 275 * 276 * @param pointInTimeType the type of the point in time (must not be null) 277 * @return the relation member table model 278 * @throws IllegalArgumentException if pointInTimeType is null 279 */ 272 280 public DiffTableModel getRelationMemberTableModel(PointInTimeType pointInTimeType) { 273 281 CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType"); 274 282 if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME)) 275 283 return currentRelationMemberTableModel; 276 else if (pointInTimeType.equals(PointInTimeType.REFERENCE_POINT_IN_TIME))284 else // REFERENCE_POINT_IN_TIME 277 285 return referenceRelationMemberTableModel; 278 279 // should not happen280 return null;281 286 } 282 287
Note:
See TracChangeset
for help on using the changeset viewer.