- Timestamp:
- 2021-06-02T23:14:11+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryViewerPanel.java
r16609 r17921 43 43 } 44 44 45 protected abstract JTable buildTable(PointInTimeType pointInTimeType); 45 protected abstract JTable buildReferenceTable(); 46 47 protected abstract JTable buildCurrentTable(); 46 48 47 49 private void build() { … … 84 86 gc.fill = GridBagConstraints.BOTH; 85 87 gc.anchor = GridBagConstraints.NORTHWEST; 86 add(embedInScrollPane(build Table(PointInTimeType.REFERENCE_POINT_IN_TIME)), gc);88 add(embedInScrollPane(buildReferenceTable()), gc); 87 89 88 90 gc.gridx = 1; … … 94 96 gc.fill = GridBagConstraints.BOTH; 95 97 gc.anchor = GridBagConstraints.NORTHWEST; 96 add(embedInScrollPane(build Table(PointInTimeType.CURRENT_POINT_IN_TIME)), gc);98 add(embedInScrollPane(buildCurrentTable()), gc); 97 99 } 98 100 -
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r16960 r17921 38 38 39 39 @Override 40 protected JTable buildTable(PointInTimeType pointInTimeType) { 40 protected JTable buildReferenceTable() { 41 return buildTable(PointInTimeType.REFERENCE_POINT_IN_TIME, "table.referencenodelisttable"); 42 } 43 44 @Override 45 protected JTable buildCurrentTable() { 46 return buildTable(PointInTimeType.CURRENT_POINT_IN_TIME, "table.currentnodelisttable"); 47 } 48 49 private JTable buildTable(PointInTimeType pointInTimeType, String name) { 41 50 final DiffTableModel tableModel = model.getNodeListTableModel(pointInTimeType); 42 51 final NodeListTableColumnModel columnModel = new NodeListTableColumnModel(); … … 44 53 TableHelper.setFont(table, getClass()); 45 54 tableModel.addTableModelListener(new ReversedChangeListener(table, columnModel, tr("The nodes of this way are in reverse order"))); 55 table.setName(name); 46 56 table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 47 57 selectionSynchronizer.participateInSynchronizedSelection(table.getSelectionModel()); -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListViewer.java
r16960 r17921 29 29 30 30 @Override 31 protected JTable buildTable(PointInTimeType pointInTimeType) { 31 protected JTable buildReferenceTable() { 32 return buildTable(PointInTimeType.REFERENCE_POINT_IN_TIME, "table.referencememberlisttable"); 33 } 34 35 @Override 36 protected JTable buildCurrentTable() { 37 return buildTable(PointInTimeType.CURRENT_POINT_IN_TIME, "table.currentmemberlisttable"); 38 } 39 40 private JTable buildTable(PointInTimeType pointInTimeType, String name) { 32 41 final DiffTableModel tableModel = model.getRelationMemberTableModel(pointInTimeType); 33 42 final RelationMemberTableColumnModel columnModel = new RelationMemberTableColumnModel(); … … 36 45 tableModel.addTableModelListener(new ReversedChangeListener( 37 46 table, columnModel, tr("The members of this relation are in reverse order"))); 47 table.setName(name); 38 48 table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 39 49 selectionSynchronizer.participateInSynchronizedSelection(table.getSelectionModel()); -
trunk/src/org/openstreetmap/josm/gui/history/TagInfoViewer.java
r17684 r17921 62 62 63 63 @Override 64 protected JTable buildTable(PointInTimeType pointInTime) { 64 protected JTable buildReferenceTable() { 65 return buildTable(PointInTimeType.REFERENCE_POINT_IN_TIME); 66 } 67 68 @Override 69 protected JTable buildCurrentTable() { 70 return buildTable(PointInTimeType.CURRENT_POINT_IN_TIME); 71 } 72 73 private JTable buildTable(PointInTimeType pointInTime) { 65 74 TagTableModel tagTableModel = model.getTagTableModel(pointInTime); 66 75 JTable table = new JTable(tagTableModel, new TagTableColumnModel());
Note:
See TracChangeset
for help on using the changeset viewer.