Changeset 10223 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2016-05-16T04:05:58+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r10212 r10223 25 25 */ 26 26 public abstract class PleaseWaitRunnable implements Runnable, CancelListener { 27 private boolean canceled;28 27 private boolean ignoreException; 29 28 private final String title; … … 150 149 @Override 151 150 public final void run() { 152 if (canceled)153 return; // since realRun isn't executed, do not call to finish154 155 151 if (EventQueue.isDispatchThread()) { 156 152 new Thread(new Runnable() { -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r9935 r10223 91 91 if (provider != null) { 92 92 try { 93 // TODO 94 Field f = provider.getClass().getDeclaredField("connection"); 95 f.setAccessible(true); 93 Field f = provider.getClass().getDeclaredField("connection"); 94 Utils.setObjectsAccessible(f); 96 95 HttpURLConnection con = (HttpURLConnection) f.get(provider); 97 96 if (con != null) { -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmImageView.java
r10046 r10223 17 17 import org.openstreetmap.josm.Main; 18 18 import org.openstreetmap.josm.tools.ImageProvider; 19 import org.openstreetmap.josm.tools.Utils; 19 20 20 21 /** … … 47 48 widthField = ImageView.class.getDeclaredField("width"); 48 49 heightField = ImageView.class.getDeclaredField("height"); 49 imageField.setAccessible(true); 50 stateField.setAccessible(true); 51 widthField.setAccessible(true); 52 heightField.setAccessible(true); 50 Utils.setObjectsAccessible(imageField, stateField, widthField, heightField); 53 51 } 54 52 … … 102 100 // And update the size params 103 101 Method updateImageSize = ImageView.class.getDeclaredMethod("updateImageSize"); 104 updateImageSiz e.setAccessible(true);102 Utils.setObjectsAccessible(updateImageSize); 105 103 updateImageSize.invoke(this); 106 104 } finally { … … 130 128 } else { 131 129 Method loadImage = ImageView.class.getDeclaredMethod("loadImage"); 132 loadImage.setAccessible(true);130 Utils.setObjectsAccessible(loadImage); 133 131 loadImage.invoke(this); 134 132 }
Note:
See TracChangeset
for help on using the changeset viewer.