Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java
r12599 r12620 4 4 import java.util.List; 5 5 6 import org.openstreetmap.josm.Main;7 6 import org.openstreetmap.josm.gui.MapFrame; 8 7 import org.openstreetmap.josm.gui.download.DownloadSelection; 9 8 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 9 import org.openstreetmap.josm.tools.Logging; 10 10 import org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler; 11 11 … … 66 66 plugin.getClass().getMethod("mapFrameInitialized", MapFrame.class, MapFrame.class).invoke(plugin, oldFrame, newFrame); 67 67 } 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"); 70 70 } catch (ReflectiveOperationException | IllegalArgumentException | NoClassDefFoundError e) { 71 71 handlePluginException(e); … … 78 78 return (PreferenceSetting) plugin.getClass().getMethod("getPreferenceSetting").invoke(plugin); 79 79 } 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"); 82 82 return null; 83 83 } catch (ReflectiveOperationException | IllegalArgumentException | NoClassDefFoundError e) { … … 92 92 plugin.getClass().getMethod("addDownloadSelection", List.class).invoke(plugin, list); 93 93 } 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"); 96 96 } catch (ReflectiveOperationException | IllegalArgumentException | NoClassDefFoundError e) { 97 97 handlePluginException(e);
Note:
See TracChangeset
for help on using the changeset viewer.