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/RasterImageGeoreferencer.java

    r29714 r30859  
    9191  }
    9292
    93  
     93
    9494  public boolean isRunning()
    9595  {
     
    9797  }
    9898
    99   public void mouseClicked(MouseEvent e) {
     99  @Override
     100public void mouseClicked(MouseEvent e) {
    100101      if (System.currentTimeMillis() - mouseClickedTime < initialClickDelay) {
    101           System.out.println("mouse click bounce detected");
     102          Main.info("mouse click bounce detected");
    102103          return; // mouse click anti-bounce
    103104      }
     
    108109      if (ignoreMouseClick) return; // In case we are currently just allowing zooming to read lambert coordinates
    109110      EastNorth ea = Main.getProjection().latlon2eastNorth(Main.map.mapView.getLatLon(e.getX(), e.getY()));
    110       System.out.println("clic:"+countMouseClicked+" ,"+ea+", mode:"+mode);
     111      Main.info("click:"+countMouseClicked+" ,"+ea+", mode:"+mode);
    111112      if (clickOnTheMap) {
    112113          clickOnTheMap = false;
     
    117118                  || ea.north() < wmsLayer.getImage(0).min.north() || ea.north() > wmsLayer.getImage(0).max.north())
    118119          {
    119               System.out.println("ignore clic outside the image");
     120              Main.info("ignore click outside the image");
    120121              return;
    121122          }
     
    182183                 tr("Ooops. I failed to catch all coordinates\n"+
    183184                    "correctly. Retry please."));
    184          System.out.println("failed to transform: one coordinate missing:"
     185         Main.warn("failed to transform: one coordinate missing:"
    185186                    +"org1="+org1+", org2="+org2+", dst1="+dst1+", dst2="+dst2);
    186187         return;
     
    249250     dialog.setVisible(true);
    250251     pane.addPropertyChangeListener(new PropertyChangeListener() {
    251          public void propertyChange(PropertyChangeEvent evt) {
     252         @Override
     253                public void propertyChange(PropertyChangeEvent evt) {
    252254             if (JOptionPane.VALUE_PROPERTY.equals(evt.getPropertyName())) {
    253255                 ignoreMouseClick = false;
     
    352354 }
    353355
    354  public void mouseEntered(MouseEvent arg0) {
    355  }
    356 
    357  public void mouseExited(MouseEvent arg0) {
    358  }
    359 
    360  public void mousePressed(MouseEvent arg0) {
    361  }
    362 
    363  public void mouseReleased(MouseEvent arg0) {
     356 @Override
     357public void mouseEntered(MouseEvent arg0) {
     358 }
     359
     360 @Override
     361public void mouseExited(MouseEvent arg0) {
     362 }
     363
     364 @Override
     365public void mousePressed(MouseEvent arg0) {
     366 }
     367
     368 @Override
     369public void mouseReleased(MouseEvent arg0) {
    364370 }
    365371
Note: See TracChangeset for help on using the changeset viewer.