- Timestamp:
- 2017-09-07T01:05:36+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r12747 r12767 16 16 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 17 17 import org.openstreetmap.josm.data.UserIdentityManager; 18 import org.openstreetmap.josm.gui.util.GuiHelper;19 18 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 20 19 … … 32 31 * clears itself if the OSM API URL is changed in the preferences. 33 32 * 34 * {@link ChangesetCacheEvent}s are delivered on the EDT.35 *36 33 */ 37 34 public final class ChangesetCache implements PreferenceChangedListener { … … 80 77 81 78 private void fireChangesetCacheEvent(final ChangesetCacheEvent e) { 82 GuiHelper.runInEDT(() -> { 83 for (ChangesetCacheListener l: listeners) { 84 l.changesetCacheUpdated(e); 85 } 86 }); 79 for (ChangesetCacheListener l: listeners) { 80 l.changesetCacheUpdated(e); 81 } 87 82 } 88 83 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerModel.java
r12495 r12767 198 198 } 199 199 } 200 sort(); 201 fireTableDataChanged(); 202 setSelectedChangesets(selected); 200 GuiHelper.runInEDT(() -> { 201 sort(); 202 fireTableDataChanged(); 203 setSelectedChangesets(selected); 204 }); 203 205 } 204 206 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetListModel.java
r12372 r12767 19 19 import org.openstreetmap.josm.data.osm.OsmPrimitive; 20 20 import org.openstreetmap.josm.data.osm.Storage; 21 import org.openstreetmap.josm.gui.util.GuiHelper; 21 22 22 23 /** … … 228 229 } 229 230 } 230 fireContentsChanged(this, 0, getSize()); 231 setSelectedChangesets(sel); 231 GuiHelper.runInEDT(() -> { 232 fireContentsChanged(this, 0, getSize()); 233 setSelectedChangesets(sel); 234 }); 232 235 } 233 236 } -
trunk/src/org/openstreetmap/josm/gui/io/OpenChangesetComboBoxModel.java
r9519 r12767 11 11 import org.openstreetmap.josm.data.osm.ChangesetCacheEvent; 12 12 import org.openstreetmap.josm.data.osm.ChangesetCacheListener; 13 import org.openstreetmap.josm.gui.util.GuiHelper; 13 14 14 15 /** … … 67 68 @Override 68 69 public void changesetCacheUpdated(ChangesetCacheEvent event) { 69 refresh();70 GuiHelper.runInEDT(this::refresh); 70 71 } 71 72 -
trunk/src/org/openstreetmap/josm/io/MessageNotifier.java
r12766 r12767 35 35 /** 36 36 * Called when new new messages are detected. 37 * @since xxx37 * @since 12766 38 38 */ 39 39 @FunctionalInterface
Note:
See TracChangeset
for help on using the changeset viewer.