Changeset 8509 in josm for trunk/src/org/openstreetmap/josm/gui/history
- Timestamp:
- 2015-06-20T14:36:00+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r8399 r8509 300 300 throw new IllegalStateException(tr("History not initialized yet. Failed to set reference primitive.")); 301 301 if (reference.getId() != history.getId()) 302 throw new IllegalArgumentException(tr("Failed to set reference. Reference ID {0} does not match history ID {1}.", reference.getId(), history.getId())); 302 throw new IllegalArgumentException( 303 tr("Failed to set reference. Reference ID {0} does not match history ID {1}.", reference.getId(), history.getId())); 303 304 HistoryOsmPrimitive primitive = history.getByVersion(reference.getVersion()); 304 305 if (primitive == null) 305 throw new IllegalArgumentException(tr("Failed to set reference. Reference version {0} not available in history.", reference.getVersion())); 306 throw new IllegalArgumentException( 307 tr("Failed to set reference. Reference version {0} not available in history.", reference.getVersion())); 306 308 307 309 this.reference = reference; … … 330 332 throw new IllegalStateException(tr("History not initialized yet. Failed to set current primitive.")); 331 333 if (current.getId() != history.getId()) 332 throw new IllegalArgumentException(tr("Failed to set reference. Reference ID {0} does not match history ID {1}.", current.getId(), history.getId())); 334 throw new IllegalArgumentException( 335 tr("Failed to set reference. Reference ID {0} does not match history ID {1}.", current.getId(), history.getId())); 333 336 HistoryOsmPrimitive primitive = history.getByVersion(current.getVersion()); 334 337 if (primitive == null) 335 throw new IllegalArgumentException(tr("Failed to set current primitive. Current version {0} not available in history.", current.getVersion())); 338 throw new IllegalArgumentException( 339 tr("Failed to set current primitive. Current version {0} not available in history.", current.getVersion())); 336 340 this.current = current; 337 341 initTagTableModels();
Note:
See TracChangeset
for help on using the changeset viewer.