Changeset 5307 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-06-28T10:52:00+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java
r5306 r5307 32 32 * @throws PluginListParseException 33 33 */ 34 protected PluginInformation createInfo(String name, String url, String manifest) throws PluginListParseException{34 protected static PluginInformation createInfo(String name, String url, String manifest) throws PluginListParseException{ 35 35 try { 36 36 return new PluginInformation( … … 84 84 continue; 85 85 } 86 if (name != null) { 87 PluginInformation info = createInfo(name, url, manifest.toString()); 88 if (info != null) { 89 for (PluginProxy plugin : PluginHandler.pluginList) { 90 if (plugin.getPluginInformation().name.equals(info.getName())) { 91 info.localversion = plugin.getPluginInformation().localversion; 92 } 93 } 94 ret.add(info); 95 } 96 } 86 addPluginInformation(ret, name, url, manifest.toString()); 97 87 String x[] = line.split(";"); 98 88 if(x.length != 2) … … 103 93 104 94 } 95 addPluginInformation(ret, name, url, manifest.toString()); 96 return ret; 97 } catch (IOException e) { 98 throw new PluginListParseException(e); 99 } 100 } 101 102 private static void addPluginInformation(List<PluginInformation> ret, String name, String url, String manifest) { 103 try { 105 104 if (name != null) { 106 105 PluginInformation info = createInfo(name, url, manifest.toString()); … … 114 113 } 115 114 } 116 return ret; 117 } catch (IOException e) { 118 throw new PluginListParseException(e); 115 } catch (PluginListParseException ex) { 116 ex.printStackTrace(); 119 117 } 120 118 } 119 121 120 }
Note:
See TracChangeset
for help on using the changeset viewer.