Changeset 3414 in osm for applications/editors/josm/plugins/pluginmanager/src
- Timestamp:
- 2007-06-29T18:42:50+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pluginmanager/src/at/dallermassl/josm/plugin/pluginmanager/SiteDescriptionParser.java
r3335 r3414 4 4 package at.dallermassl.josm.plugin.pluginmanager; 5 5 6 import java.io.IOException; 7 import java.io.InputStreamReader; 8 import java.io.Reader; 6 9 import java.net.MalformedURLException; 7 10 import java.net.URL; … … 87 90 } else if("site".equals(qName)) { 88 91 if(atts.getIndex("ref") >= 0) { 89 System.out.println("Handling referenced sites..."); 92 String urlString = atts.getValue("ref"); 93 System.out.println("Handling referenced site " + urlString); 94 try { 95 SiteDescription subsite = new SiteDescription(urlString); 96 subsite.loadFromUrl(); 97 // add the subsite's plugins to this site: 98 for(PluginDescription desc : subsite.getPlugins()) { 99 siteDescription.addPlugin(desc); 100 System.out.println("adding plugin " + desc.getName()); 101 } 102 } catch(IOException e) { 103 e.printStackTrace(); 104 } 90 105 } else if(!"1.0".equals(atts.getValue("version"))) { 91 106 throw new SAXException("Unknown version of site description (must be '1.0')!");
Note:
See TracChangeset
for help on using the changeset viewer.