Changeset 16600 in josm
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; -
trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTestIT.java
r16215 r16600 9 9 import org.junit.Rule; 10 10 import org.junit.Test; 11 import org.openstreetmap.hot.sds.SeparateDataStorePlugin; 11 12 import org.openstreetmap.josm.testutils.JOSMTestRules; 12 13 … … 23 24 @Rule 24 25 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 25 public JOSMTestRules rules = new JOSMTestRules().projection() ;26 public JOSMTestRules rules = new JOSMTestRules().projection().main(); 26 27 27 28 … … 31 32 @Test 32 33 public void testUtilityClass() { 34 new SeparateDataStorePlugin(null); 33 35 Logging.clearLastErrorAndWarnings(); 34 36 Territories.initialize();
Note:
See TracChangeset
for help on using the changeset viewer.