Changeset 32372 in osm for applications/editors/josm
- Timestamp:
- 2016-06-23T01:17:26+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
r31983 r32372 250 250 } 251 251 if (!SwingUtilities.isEventDispatchThread()) { 252 SwingUtilities.invokeLater(new Runnable() { 253 @Override 254 public void run() { 255 setMenuEnabled(menu, value); 256 } 257 }); 252 SwingUtilities.invokeLater( () -> setMenuEnabled(menu, value)); 258 253 } else { 259 254 menu.setEnabled(value); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryPreferenceSetting.java
r32199 r32372 134 134 } 135 135 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 } 136 new Thread( () -> { 137 String username = MapillaryUser.getUsername(); 138 if (username != null) { 139 SwingUtilities.invokeLater( () -> onLogin(MapillaryUser.getUsername()) ); 148 140 } 149 141 }).start(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillaryDownloader.java
r32329 r32372 192 192 tr("The downloaded OSM area is too big. Download mode has been changed to semiautomatic until the layer is restarted.")); 193 193 } else { 194 SwingUtilities.invokeLater(new Runnable() { 195 @Override 196 public void run() { 197 tooBigErrorDialog(); 198 } 199 }); 194 SwingUtilities.invokeLater( () -> tooBigErrorDialog()); 200 195 } 201 196 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryUtils.java
r32341 r32372 203 203 public static void showPictures(final Set<MapillaryAbstractImage> images, final boolean select) { 204 204 if (!SwingUtilities.isEventDispatchThread()) { 205 SwingUtilities.invokeLater(new Runnable() { 206 @Override 207 public void run() { 208 showPictures(images, select); 209 } 210 }); 205 SwingUtilities.invokeLater( () -> showPictures(images, select) ); 211 206 } else { 212 207 Bounds zoomBounds; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/PluginState.java
r31972 r32372 101 101 dlg.setVisible(true); 102 102 } else { 103 SwingUtilities.invokeLater(new Runnable() { 104 @Override 105 public void run() { 106 finishedUploadDialog(); 107 } 108 }); 103 SwingUtilities.invokeLater( () -> finishedUploadDialog() ); 109 104 } 110 105 }
Note:
See TracChangeset
for help on using the changeset viewer.