Changeset 26509 in osm for applications/editors/josm/plugins/trustosm
- Timestamp:
- 2011-08-11T00:45:56+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/DownloadSignedOsmDataTask.java
r25269 r26509 25 25 public class DownloadSignedOsmDataTask extends PleaseWaitRunnable { 26 26 27 private boolean cancel led;27 private boolean canceled; 28 28 private Exception lastException; 29 29 private final Collection<OsmPrimitive> missing; … … 44 44 @Override 45 45 protected void cancel() { 46 cancel led = true;46 canceled = true; 47 47 synchronized(this) { 48 48 if (objectReader != null) { … … 55 55 protected void finish() { 56 56 Main.map.repaint(); 57 if (cancel led)57 if (canceled) 58 58 return; 59 59 if (lastException != null) { … … 75 75 try { 76 76 synchronized (this) { 77 if (cancel led) return;77 if (canceled) return; 78 78 objectReader = new MultiFetchServerObjectReader(); 79 79 } … … 87 87 return; 88 88 synchronized (this) { 89 if (cancel led) return;89 if (canceled) return; 90 90 objectReader = null; 91 91 } … … 103 103 104 104 } catch (Exception e) { 105 if (cancel led) {106 System.out.println(tr("Warning: ignoring exception because task is cancel led. Exception: {0}", e.toString()));105 if (canceled) { 106 System.out.println(tr("Warning: ignoring exception because task is canceled. Exception: {0}", e.toString())); 107 107 return; 108 108 } -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/KeyGenerationTask.java
r24389 r26509 12 12 public class KeyGenerationTask extends PleaseWaitRunnable { 13 13 14 private boolean cancel led;14 private boolean canceled; 15 15 private Exception lastException; 16 16 … … 21 21 @Override 22 22 protected void cancel() { 23 cancel led = true;23 canceled = true; 24 24 synchronized(this) { 25 25 /* if (objectReader != null) { … … 31 31 @Override 32 32 protected void finish() { 33 if (cancel led)33 if (canceled) 34 34 return; 35 35 if (lastException != null) { … … 44 44 try { 45 45 /* synchronized (this) { 46 if (cancel led) return;46 if (canceled) return; 47 47 objectReader = new MultiFetchServerObjectReader(); 48 48 } … … 56 56 return; 57 57 synchronized (this) { 58 if (cancel led) return;58 if (canceled) return; 59 59 objectReader = null; 60 60 } … … 71 71 */ 72 72 } catch (Exception e) { 73 if (cancel led) {74 System.out.println(tr("Warning: ignoring exception because task is cancel led. Exception: {0}", e73 if (canceled) { 74 System.out.println(tr("Warning: ignoring exception because task is canceled. Exception: {0}", e 75 75 .toString())); 76 76 return;
Note:
See TracChangeset
for help on using the changeset viewer.