Changeset 5932 in josm
- Timestamp:
- 2013-05-06T02:53:50+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java
r5266 r5932 231 231 } 232 232 233 /** 234 * Constructs a new {@code TagMerger}. 235 */ 233 236 public TagMerger() { 234 237 model = new TagMergeModel(); … … 424 427 public void populate(Conflict<? extends OsmPrimitive> conflict) { 425 428 model.populate(conflict.getMy(), conflict.getTheir()); 426 mineTable.getSelectionModel().setSelectionInterval(0, 0); 427 theirTable.getSelectionModel().setSelectionInterval(0, 0); 429 for (JTable table : new JTable[]{mineTable, theirTable}) { 430 int index = table.getRowCount() > 0 ? 0 : -1; 431 table.getSelectionModel().setSelectionInterval(index, index); 432 } 428 433 } 429 434 }
Note:
See TracChangeset
for help on using the changeset viewer.