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/plugins/PluginProxy.java

    r12599 r12620  
    44import java.util.List;
    55
    6 import org.openstreetmap.josm.Main;
    76import org.openstreetmap.josm.gui.MapFrame;
    87import org.openstreetmap.josm.gui.download.DownloadSelection;
    98import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
     9import org.openstreetmap.josm.tools.Logging;
    1010import org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler;
    1111
     
    6666            plugin.getClass().getMethod("mapFrameInitialized", MapFrame.class, MapFrame.class).invoke(plugin, oldFrame, newFrame);
    6767        } catch (NoSuchMethodException e) {
    68             Main.trace(e);
    69             Main.debug("Plugin "+plugin+" does not define mapFrameInitialized");
     68            Logging.trace(e);
     69            Logging.debug("Plugin "+plugin+" does not define mapFrameInitialized");
    7070        } catch (ReflectiveOperationException | IllegalArgumentException | NoClassDefFoundError e) {
    7171            handlePluginException(e);
     
    7878            return (PreferenceSetting) plugin.getClass().getMethod("getPreferenceSetting").invoke(plugin);
    7979        } catch (NoSuchMethodException e) {
    80             Main.trace(e);
    81             Main.debug("Plugin "+plugin+" does not define getPreferenceSetting");
     80            Logging.trace(e);
     81            Logging.debug("Plugin "+plugin+" does not define getPreferenceSetting");
    8282            return null;
    8383        } catch (ReflectiveOperationException | IllegalArgumentException | NoClassDefFoundError e) {
     
    9292            plugin.getClass().getMethod("addDownloadSelection", List.class).invoke(plugin, list);
    9393        } catch (NoSuchMethodException e) {
    94             Main.trace(e);
    95             Main.debug("Plugin "+plugin+" does not define addDownloadSelection");
     94            Logging.trace(e);
     95            Logging.debug("Plugin "+plugin+" does not define addDownloadSelection");
    9696        } catch (ReflectiveOperationException | IllegalArgumentException | NoClassDefFoundError e) {
    9797            handlePluginException(e);
Note: See TracChangeset for help on using the changeset viewer.