Changeset 509 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2008-01-03T22:35:25+01:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r504 r509 55 55 */ 56 56 public static class PluginDescription { 57 // Note: All the following need to be public instance variables of 58 // type String. (Plugin description XMLs from the server are parsed 59 // with tools.XmlObjectParser, which uses reflection to access them.) 57 60 public String name; 58 61 public String description; 59 public URLresource;62 public String resource; 60 63 public String version; 61 public PluginDescription(String name, String description, URLresource, String version) {64 public PluginDescription(String name, String description, String resource, String version) { 62 65 this.name = name; 63 66 this.description = description; … … 250 253 info.name, 251 254 info.description, 252 PluginInformation.fileToURL(f) ,255 PluginInformation.fileToURL(f).toString(), 253 256 info.version)); 254 257 } catch (PluginException x) { … … 273 276 proxy.info.name, 274 277 proxy.info.description, 275 proxy.info.file == null ? null : PluginInformation.fileToURL(proxy.info.file), 278 proxy.info.file == null ? null : 279 PluginInformation.fileToURL(proxy.info.file).toString(), 276 280 proxy.info.version)); 277 281 return availablePlugins.values(); -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloader.java
r507 r509 140 140 } 141 141 142 private static boolean download( URLurl, File file) {142 private static boolean download(String url, File file) { 143 143 try { 144 InputStream in = url.openStream();144 InputStream in = new URL(url).openStream(); 145 145 OutputStream out = new FileOutputStream(file); 146 146 byte[] buffer = new byte[8192];
Note:
See TracChangeset
for help on using the changeset viewer.