Ignore:
Timestamp:
2014-12-19T17:12:01+01:00 (12 years ago)
Author:
donvip
Message:

[josm_cadastre-fr] replace calls to System.out/err by calls to Main.info/warn/error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSPlanImage.java

    r26509 r30859  
    1616
    1717public class DownloadWMSPlanImage {
    18    
     18
    1919    private Future<Task> task = null;
    2020    private WMSLayer wmsLayer;
     
    2222    private static boolean dontGeoreference = false;
    2323    private static String errorMessage;
    24    
     24
    2525    private class Task extends PleaseWaitRunnable {
    2626        public Task(WMSLayer wmsLayer, Bounds bounds) {
     
    8585            } catch (DuplicateLayerException e) {
    8686                // we tried to grab onto a duplicated layer (removed)
    87                 System.err.println("removed a duplicated layer");
     87                Main.warn("removed a duplicated layer");
    8888            } catch (WMSException e) {
    8989                errorMessage = e.getMessage();
     
    9191            }
    9292        }
    93        
     93
    9494        @Override
    9595        protected void cancel() {
     
    102102        }
    103103    }
    104    
     104
    105105    public void download(WMSLayer wmsLayer) {
    106106        MapView mv = Main.map.mapView;
Note: See TracChangeset for help on using the changeset viewer.