Changeset 32378 in osm for applications/editors/josm/plugins/mapillary/src
- Timestamp:
- 2016-06-23T02:41:12+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r32372 r32378 250 250 } 251 251 if (!SwingUtilities.isEventDispatchThread()) { 252 SwingUtilities.invokeLater( () -> setMenuEnabled(menu, value)); 252 SwingUtilities.invokeLater( new Runnable() { 253 @Override 254 public void run() { 255 setMenuEnabled(menu, value); 256 } 257 }); 253 258 } else { 254 259 menu.setEnabled(value); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryPreferenceSetting.java
r32372 r32378 134 134 } 135 135 136 new Thread( () -> { 137 String username = MapillaryUser.getUsername(); 138 if (username != null) { 139 SwingUtilities.invokeLater( () -> onLogin(MapillaryUser.getUsername()) ); 136 new Thread( new Runnable() { 137 @Override 138 public void run() { 139 String username = MapillaryUser.getUsername(); 140 if (username != null) { 141 SwingUtilities.invokeLater( new Runnable() { 142 @Override 143 public void run() { 144 onLogin(MapillaryUser.getUsername()); 145 } 146 } ); 147 } 140 148 } 141 149 }).start(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillaryDownloader.java
r32374 r32378 193 193 tr("The downloaded OSM area is too big. Download mode has been changed to semiautomatic until the layer is restarted.")); 194 194 } else { 195 SwingUtilities.invokeLater( () -> tooBigErrorDialog()); 195 SwingUtilities.invokeLater( new Runnable() { 196 @Override 197 public void run() { 198 tooBigErrorDialog(); 199 } 200 }); 196 201 } 197 202 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryUtils.java
r32372 r32378 203 203 public static void showPictures(final Set<MapillaryAbstractImage> images, final boolean select) { 204 204 if (!SwingUtilities.isEventDispatchThread()) { 205 SwingUtilities.invokeLater( () -> showPictures(images, select) ); 205 SwingUtilities.invokeLater( new Runnable() { 206 @Override 207 public void run() { 208 showPictures(images, select); 209 } 210 } ); 206 211 } else { 207 212 Bounds zoomBounds; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/PluginState.java
r32372 r32378 101 101 dlg.setVisible(true); 102 102 } else { 103 SwingUtilities.invokeLater( () -> finishedUploadDialog() ); 103 SwingUtilities.invokeLater( new Runnable() { 104 @Override 105 public void run() { 106 finishedUploadDialog(); 107 } 108 } ); 104 109 } 105 110 }
Note:
See TracChangeset
for help on using the changeset viewer.