Changeset 6310 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2013-10-07T00:04:48+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r6248 r6310 210 210 stage = stageStr == null ? 50 : Integer.parseInt(stageStr); 211 211 version = attr.getValue("Plugin-Version"); 212 try { mainversion = Integer.parseInt(attr.getValue("Plugin-Mainversion")); } 213 catch(NumberFormatException e) {} 212 try { 213 mainversion = Integer.parseInt(attr.getValue("Plugin-Mainversion")); 214 } catch(NumberFormatException e) { 215 Main.warn(e); 216 } 214 217 author = attr.getValue("Author"); 215 218 iconPath = attr.getValue("Plugin-Icon"); -
trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java
r2830 r6310 4 4 import java.util.List; 5 5 6 import org.openstreetmap.josm.Main; 6 7 import org.openstreetmap.josm.gui.MapFrame; 7 8 import org.openstreetmap.josm.gui.download.DownloadSelection; … … 29 30 plugin.getClass().getMethod("mapFrameInitialized", MapFrame.class, MapFrame.class).invoke(plugin, oldFrame, newFrame); 30 31 } catch (NoSuchMethodException e) { 32 Main.debug("Plugin "+plugin+" does not define mapFrameInitialized"); 31 33 } catch (Exception e) { 32 34 BugReportExceptionHandler.handleException(new PluginException(this, getPluginInformation().name, e)); … … 38 40 return (PreferenceSetting)plugin.getClass().getMethod("getPreferenceSetting").invoke(plugin); 39 41 } catch (NoSuchMethodException e) { 42 Main.debug("Plugin "+plugin+" does not define getPreferenceSetting"); 40 43 return null; 41 44 } catch (Exception e) { … … 49 52 plugin.getClass().getMethod("addDownloadSelection", List.class).invoke(plugin, list); 50 53 } catch (NoSuchMethodException e) { 51 // ignore54 Main.debug("Plugin "+plugin+" does not define addDownloadSelection"); 52 55 } catch (Exception e) { 53 56 BugReportExceptionHandler.handleException(new PluginException(this, getPluginInformation().name, e));
Note:
See TracChangeset
for help on using the changeset viewer.