IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/org/openstreetmap/josm/plugins/PluginHandler.java b/src/org/openstreetmap/josm/plugins/PluginHandler.java
a
|
b
|
|
80 | 80 | import org.openstreetmap.josm.tools.ResourceProvider; |
81 | 81 | import org.openstreetmap.josm.tools.SubclassFilteredCollection; |
82 | 82 | import org.openstreetmap.josm.tools.Utils; |
| 83 | import org.openstreetmap.josm.tools.bugreport.BugReport; |
| 84 | import org.openstreetmap.josm.tools.bugreport.ReportedException; |
83 | 85 | |
84 | 86 | /** |
85 | 87 | * PluginHandler is basically a collection of static utility functions used to bootstrap |
… |
… |
|
806 | 808 | */ |
807 | 809 | private static void loadPlugin(Component parent, PluginInformation plugin, PluginClassLoader pluginClassLoader) { |
808 | 810 | String msg = tr("Could not load plugin {0}. Delete from preferences?", "'"+plugin.name+"'"); |
| 811 | Exception exception = null; |
809 | 812 | try { |
810 | 813 | Class<?> klass = plugin.loadClass(pluginClassLoader); |
811 | 814 | if (klass != null) { |
… |
… |
|
822 | 825 | msg = tr("<html>Could not load plugin {0} because the plugin<br>main class ''{1}'' was not found.<br>" |
823 | 826 | + "Delete from preferences?</html>", "'"+Utils.escapeReservedCharactersHTML(plugin.name)+"'", plugin.className); |
824 | 827 | } |
| 828 | exception = e; |
825 | 829 | } catch (RuntimeException e) { // NOPMD |
826 | 830 | pluginLoadingExceptions.put(plugin.name, e); |
827 | 831 | Logging.error(e); |
| 832 | exception = e; |
828 | 833 | } |
829 | 834 | if (msg != null && confirmDisablePlugin(parent, msg, plugin.name)) { |
830 | 835 | PreferencesUtils.removeFromList(Config.getPref(), "plugins", plugin.name); |
831 | 836 | } |
| 837 | if (exception != null) { |
| 838 | ReportedException reportedException = BugReport.intercept(exception); |
| 839 | reportedException.startSection("Failing plugin"); |
| 840 | reportedException.put("name", plugin.name); |
| 841 | reportedException.put("localVersion", plugin.localversion); |
| 842 | reportedException.put("version", plugin.version); |
| 843 | reportedException.put("downloadlink", plugin.downloadlink); |
| 844 | reportedException.warn(); |
| 845 | } |
832 | 846 | } |
833 | 847 | |
834 | 848 | /** |