Changeset 8219 in josm for trunk/src/org/openstreetmap/josm/gui/history/DiffTableModel.java
- Timestamp:
- 2015-04-18T15:33:28+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/DiffTableModel.java
r7937 r8219 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.history; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.util.ArrayList; … … 14 16 */ 15 17 class DiffTableModel extends AbstractTableModel { 16 private List<TwoColumnDiff.Item> rows; 18 private List<TwoColumnDiff.Item> rows = new ArrayList<>(); 19 private boolean reversed = false; 17 20 18 public void setRows(List<TwoColumnDiff.Item> rows ) {21 public void setRows(List<TwoColumnDiff.Item> rows, boolean reversed) { 19 22 this.rows = rows; 20 } 21 22 public DiffTableModel(List<TwoColumnDiff.Item> rows) { 23 this.rows = rows; 24 } 25 public DiffTableModel() { 26 this.rows = new ArrayList<>(); 23 this.reversed = reversed; 24 fireTableDataChanged(); 27 25 } 28 26 @Override … … 34 32 public int getColumnCount() { 35 33 return 1; 34 } 35 36 public boolean isReversed() { 37 return reversed; 36 38 } 37 39
Note:
See TracChangeset
for help on using the changeset viewer.