Changeset 16791 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
- Timestamp:
- 2009-08-03T11:47:01+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r16581 r16791 50 50 51 51 public boolean retrieveInterface(WMSLayer wmsLayer) throws DuplicateLayerException { 52 if (wmsLayer. name.equals(""))52 if (wmsLayer.getName().equals("")) 53 53 return false; 54 54 // open the session with the French Cadastre web front end 55 55 downloadCancelled = false; 56 56 try { 57 if (cookie == null || !wmsLayer. name.equals(cadastreGrabber.getLastWMSLayerName())) {57 if (cookie == null || !wmsLayer.getName().equals(cadastreGrabber.getLastWMSLayerName())) { 58 58 getCookie(); 59 59 getInterface(wmsLayer); 60 cadastreGrabber.setLastWMSLayerName(wmsLayer. name);60 cadastreGrabber.setLastWMSLayerName(wmsLayer.getName()); 61 61 } 62 62 openInterface(); … … 360 360 if (Main.map != null) { 361 361 for (Layer l : Main.map.mapView.getAllLayers()) { 362 if (l instanceof WMSLayer && l. name.equals(wmsLayer.name) && (l != wmsLayer)) {363 System.out.println("Try to grab into a new layer when "+wmsLayer. name+" is already opened.");362 if (l instanceof WMSLayer && l.getName().equals(wmsLayer.getName()) && (l != wmsLayer)) { 363 System.out.println("Try to grab into a new layer when "+wmsLayer.getName()+" is already opened."); 364 364 // remove the duplicated layer 365 365 Main.map.mapView.removeLayer(wmsLayer);
Note:
See TracChangeset
for help on using the changeset viewer.
