Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate all Main logging methods and introduce suitable replacements in Logging for most of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r12279 r12620  
    3535import org.openstreetmap.josm.tools.GBC;
    3636import org.openstreetmap.josm.tools.ImageProvider;
     37import org.openstreetmap.josm.tools.Logging;
    3738
    3839/**
     
    102103            Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK);
    103104        } catch (SecurityException ex) {
    104             Main.error(ex);
     105            Logging.error(ex);
    105106        }
    106107    }
     
    123124            Toolkit.getDefaultToolkit().removeAWTEventListener(this);
    124125        } catch (SecurityException ex) {
    125             Main.error(ex);
     126            Logging.error(ex);
    126127        }
    127128        if (Main.isDisplayingMapView()) {
     
    157158                offsetDialog.updateOffset();
    158159            }
    159             if (Main.isDebugEnabled()) {
    160                 Main.debug(getClass().getName()+" consuming event "+kev);
     160            if (Logging.isDebugEnabled()) {
     161                Logging.debug("{0} consuming event {1}", getClass().getName(), kev);
    161162            }
    162163            kev.consume();
     
    261262                } catch (NumberFormatException nfe) {
    262263                    // we repaint offset numbers in any case
    263                     Main.trace(nfe);
     264                    Logging.trace(nfe);
    264265                }
    265266            }
Note: See TracChangeset for help on using the changeset viewer.