Changeset 16600 in josm for trunk/src/org
- Timestamp:
- 2020-06-11T14:19:07+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/SelectionSynchronizer.java
r15769 r16600 9 9 import javax.swing.event.ListSelectionEvent; 10 10 import javax.swing.event.ListSelectionListener; 11 12 import org.openstreetmap.josm.gui.util.TableHelper; 11 13 12 14 /** … … 51 53 preventRecursion = true; 52 54 DefaultListSelectionModel referenceModel = (DefaultListSelectionModel) e.getSource(); 53 int i = referenceModel.getMinSelectionIndex();54 int j = referenceModel.getMaxSelectionIndex();55 55 for (ListSelectionModel model : participants) { 56 56 if (model == e.getSource()) { 57 57 continue; 58 58 } 59 model.setSelectionInterval(i, j); 59 model.clearSelection(); 60 for (int i : TableHelper.getSelectedIndices(referenceModel)) { 61 model.addSelectionInterval(i, i); 62 } 60 63 } 61 64 preventRecursion = false;
Note:
See TracChangeset
for help on using the changeset viewer.