Changeset 32721 in osm for applications/editors/josm/plugins/wikipedia
- Timestamp:
- 2016-07-26T17:20:05+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaToggleDialog.java
r32719 r32721 9 9 import java.util.Arrays; 10 10 import java.util.Collection; 11 import java.util.Collections;12 11 import java.util.HashSet; 13 12 import java.util.List; … … 172 171 protected Void doInBackground() throws Exception { 173 172 final List<WikipediaEntry> entries = getEntries(); 174 Collections.sort(entries);173 entries.sort(null); 175 174 publish(entries.toArray(new WikipediaEntry[entries.size()])); 176 if (!entries.isEmpty()) { 177 WikipediaApp.updateWIWOSMStatus(entries.get(0).wikipediaLang, entries); 178 } 175 WikipediaApp.partitionList(entries, 20).forEach(chunk -> { 176 WikipediaApp.updateWIWOSMStatus(chunk.get(0).wikipediaLang, chunk); 177 list.repaint(); 178 }); 179 179 return null; 180 180 }
Note:
See TracChangeset
for help on using the changeset viewer.