Changeset 26509 in osm for applications/editors/josm/plugins/cadastre-fr
- Timestamp:
- 2011-08-11T00:45:56+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/build.xml
r26382 r26509 32 32 <property name="ant.build.javac.target" value="1.5"/> 33 33 <property name="commit.message" value="Changed constructor for Plugin"/> 34 <property name="plugin.main.version" value="4 126"/>34 <property name="plugin.main.version" value="4310"/> 35 35 <target name="init"> 36 36 <mkdir dir="${plugin.build.dir}"/> -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r26228 r26509 26 26 27 27 public class CadastreInterface { 28 public boolean downloadCancel led = false;28 public boolean downloadCanceled = false; 29 29 public HttpURLConnection urlConn = null; 30 30 … … 76 76 interfaceRef = null; 77 77 // open the session with the French Cadastre web front end 78 downloadCancel led = false;78 downloadCanceled = false; 79 79 try { 80 80 if (cookie == null || isCookieExpired) { … … 306 306 // list of values parsed in listOfFeuilles (list all non-georeferenced images) 307 307 lines = getFeuillesList(); 308 if (!downloadCancel led) {308 if (!downloadCanceled) { 309 309 parseFeuillesList(lines); 310 310 if (listOfFeuilles.size() > 0) { … … 567 567 //urlConn.disconnect(); 568 568 } 569 downloadCancel led = true;569 downloadCanceled = true; 570 570 lastWMSLayerName = null; 571 571 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r26228 r26509 256 256 if (!alreadyRedefined) { 257 257 int reply = JOptionPane.showConfirmDialog(null, 258 tr("Plugin cadastre-fr used traditional y for grabbing the key shortcut F11\n"+259 "which is currently allocated for full-screen switch by default \n"+260 "Would you like to restore F11 for grab action 258 tr("Plugin cadastre-fr used traditionally the key shortcut F11 for grabbing,\n"+ 259 "which is currently allocated for full-screen switch by default.\n"+ 260 "Would you like to restore F11 for grab action?"), 261 261 tr("Restore grab shortcut F11"), 262 262 JOptionPane.YES_NO_OPTION); … … 268 268 } 269 269 } else 270 System.out.println(" shortcut F11 already redefined; do not change");270 System.out.println("Shortcut F11 already redefined; do not change."); 271 271 272 272 refreshMenu(); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r26382 r26509 114 114 // option to alter the original colors of the wms images 115 115 alterColors.setSelected(Main.pref.getBoolean("cadastrewms.alterColors", false)); 116 alterColors.setToolTipText(tr("Replace the original white background by the backg ound color defined in JOSM preferences."));116 alterColors.setToolTipText(tr("Replace the original white background by the background color defined in JOSM preferences.")); 117 117 cadastrewms.add(alterColors, GBC.eop().insets(0, 0, 0, 0)); 118 118 -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSPlanImage.java
r25045 r26509 45 45 // till here 46 46 dontGeoreference = true; 47 } else if (wmsLayer.grabber.getWmsInterface().downloadCancel led){47 } else if (wmsLayer.grabber.getWmsInterface().downloadCanceled){ 48 48 // do nothing 49 49 } else { … … 62 62 // grab new images from wms server into active layer 63 63 wmsLayer.grab(bounds); 64 if (wmsLayer.grabber.getWmsInterface().downloadCancel led) {64 if (wmsLayer.grabber.getWmsInterface().downloadCanceled) { 65 65 wmsLayer.clearImages(); 66 66 Main.map.mapView.repaint(); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
r25045 r26509 68 68 wmsLayer.grabber.getWmsInterface().cancel(); 69 69 if (wmsLayer != null) 70 wmsLayer.grabThread.setCancel led(true);70 wmsLayer.grabThread.setCanceled(true); 71 71 } 72 72 -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GrabThread.java
r25045 r26509 17 17 public class GrabThread extends Thread { 18 18 19 private boolean cancel led;19 private boolean canceled; 20 20 21 21 private CadastreGrabber grabber; … … 84 84 imagesToGrab.remove(0); 85 85 lockImagesToGrag.unlock(); 86 if (cancel led) {86 if (canceled) { 87 87 break; 88 88 } else { … … 93 93 } catch (IOException e) { 94 94 System.out 95 .println("Download action cancel led by user or server did not respond");96 setCancel led(true);95 .println("Download action canceled by user or server did not respond"); 96 setCanceled(true); 97 97 break; 98 98 } catch (OsmTransferException e) { 99 99 System.out.println("OSM transfer failed"); 100 setCancel led(true);100 setCanceled(true); 101 101 break; 102 102 } 103 if (grabber.getWmsInterface().download Cancelled) {104 System.out.println("Download action cancel led by user");105 setCancel led(true);103 if (grabber.getWmsInterface().downloadcanceled) { 104 System.out.println("Download action canceled by user"); 105 setCanceled(true); 106 106 break; 107 107 } … … 125 125 } catch (NullPointerException e) { 126 126 System.out.println("Layer destroyed. Cancel grab thread"); 127 setCancel led(true);127 setCanceled(true); 128 128 } 129 129 } … … 133 133 currentGrabImage = null; 134 134 lockCurrentGrabImage.unlock(); 135 if (cancel led) {135 if (canceled) { 136 136 clearImagesToGrab(); 137 cancel led = false;137 canceled = false; 138 138 } 139 139 if (wmsLayer.isRaster()) { … … 207 207 } 208 208 209 public boolean isCancel led() {210 return cancel led;211 } 212 213 public void setCancel led(boolean cancelled) {214 this.cancel led = cancelled;209 public boolean isCanceled() { 210 return canceled; 211 } 212 213 public void setCanceled(boolean canceled) { 214 this.canceled = canceled; 215 215 } 216 216 -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java
r26330 r26509 108 108 Main.map.repaint(); 109 109 } else if (wmsLayer.getImages().size() == 0) { 110 // action cancel led or image loaded from cache (and already georeferenced)110 // action canceled or image loaded from cache (and already georeferenced) 111 111 actionInterrupted(); 112 112 } else { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
r26228 r26509 129 129 130 130 public void grab(Bounds b) throws IOException { 131 grabThread.setCancel led(false);131 grabThread.setCanceled(false); 132 132 grabThread.setGrabber(grabber); 133 133 // if it is the first layer, use the communeBBox as grab bbox (and not divided)
Note:
See TracChangeset
for help on using the changeset viewer.