Changeset 11322 in josm for trunk/src/org
- Timestamp:
- 2016-11-27T02:36:59+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r10637 r11322 16 16 17 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.data.osm.Changeset; 18 19 import org.openstreetmap.josm.data.osm.Node; 19 20 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 423 424 public Object getValueAt(int row, int column) { 424 425 switch (column) { 425 case 0:426 case VersionTableColumnModel.COL_VERSION: 426 427 return Long.toString(getPrimitive(row).getVersion()); 427 case 1:428 case VersionTableColumnModel.COL_REFERENCE: 428 429 return isReferencePointInTime(row); 429 case 2:430 case VersionTableColumnModel.COL_CURRENT: 430 431 return isCurrentPointInTime(row); 431 case 3:432 case VersionTableColumnModel.COL_DATE: 432 433 HistoryOsmPrimitive p3 = getPrimitive(row); 433 434 if (p3 != null && p3.getTimestamp() != null) 434 435 return DateUtils.formatDateTime(p3.getTimestamp(), DateFormat.SHORT, DateFormat.SHORT); 435 436 return null; 436 case 4:437 case VersionTableColumnModel.COL_USER: 437 438 HistoryOsmPrimitive p4 = getPrimitive(row); 438 439 if (p4 != null) { … … 440 441 if (user != null) 441 442 return user.getName(); 443 } 444 return null; 445 case VersionTableColumnModel.COL_EDITOR: 446 HistoryOsmPrimitive p5 = getPrimitive(row); 447 if (p5 != null) { 448 Changeset cs = p5.getChangeset(); 449 if (cs != null) { 450 return cs.get("created_by"); 451 } 442 452 } 443 453 return null; -
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r10634 r11322 97 97 adjustColumnWidth(this, 3, 0); 98 98 adjustColumnWidth(this, 4, 0); 99 adjustColumnWidth(this, 5, 0); 99 100 }); 100 101 } -
trunk/src/org/openstreetmap/josm/gui/history/VersionTableColumnModel.java
r10308 r11322 25 25 /** Column index for user */ 26 26 public static final int COL_USER = 4; 27 /** Column index for editor */ 28 public static final int COL_EDITOR = 5; 27 29 28 30 /** … … 67 69 col.setResizable(false); 68 70 addColumn(col); 71 // column 5 - Editor 72 col = new TableColumn(COL_EDITOR); 73 col.setHeaderValue(tr("Editor")); 74 col.setResizable(false); 75 addColumn(col); 69 76 } 70 77 }
Note:
See TracChangeset
for help on using the changeset viewer.