Changeset 3380 in josm for trunk/src/org
- Timestamp:
- 2010-07-21T21:17:09+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r3344 r3380 752 752 * The default plugin site 753 753 */ 754 private final static String[] DEFAULT_PLUGIN_SITE = {"http://josm.openstreetmap.de/plugin "};754 private final static String[] DEFAULT_PLUGIN_SITE = {"http://josm.openstreetmap.de/plugin%<?plugins=>"}; 755 755 756 756 /** -
trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java
r3330 r3380 104 104 String name; 105 105 try { 106 site = site.replaceAll("%<(.*)>", ""); 106 107 URL url = new URL(site); 107 108 StringBuilder sb = new StringBuilder(); … … 146 147 StringBuilder sb = new StringBuilder(); 147 148 try { 149 /* replace %<x> with empty string or x=plugins (separated with comma) */ 150 String pl = Main.pref.getCollectionAsString("plugins"); 151 String printsite = site.replaceAll("%<(.*)>", ""); 152 if(pl != null && pl.length() != 0) 153 site = site.replaceAll("%<(.*)>", "$1"+pl); 154 else 155 site = printsite; 156 148 157 monitor.beginTask(""); 149 monitor.indeterminateSubTask(tr("Downloading plugin list from ''{0}''", site));158 monitor.indeterminateSubTask(tr("Downloading plugin list from ''{0}''", printsite)); 150 159 151 160 URL url = new URL(site); … … 196 205 InputStream in = null; 197 206 OutputStream out = null; 198 System.err.println("icons site: "+site); 199 try { 207 try { 208 site = site.replaceAll("%<(.*)>", ""); 209 200 210 monitor.beginTask(""); 201 211 monitor.indeterminateSubTask(tr("Downloading plugin list from ''{0}''", site)); … … 337 347 338 348 for (String site: sites) { 339 getProgressMonitor().subTask(tr("Processing plugin list from site ''{0}''", site)); 349 String printsite = site.replaceAll("%<(.*)>", ""); 350 getProgressMonitor().subTask(tr("Processing plugin list from site ''{0}''", printsite)); 340 351 String list = downloadPluginList(site, getProgressMonitor().createSubTaskMonitor(0, false)); 341 352 if (canceled) return;
Note:
See TracChangeset
for help on using the changeset viewer.