Changeset 237 in josm for src/org/openstreetmap/josm/plugins
- Timestamp:
- 2007-05-17T03:20:42+02:00 (18 years ago)
- Location:
- src/org/openstreetmap/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/plugins/Plugin.java
r199 r237 8 8 import java.net.URL; 9 9 import java.net.URLClassLoader; 10 import java.util.List; 10 11 11 12 import org.openstreetmap.josm.Main; 12 13 import org.openstreetmap.josm.gui.MapFrame; 14 import org.openstreetmap.josm.gui.download.DownloadSelection; 13 15 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 14 16 … … 75 77 * if any available. 76 78 */ 77 public PreferenceSetting getPreferenceSetting() {return null;} 79 public PreferenceSetting getPreferenceSetting() { return null; } 78 80 81 /** 82 * Called in the download dialog to give the plugin a chance to modify the list 83 * of bounding box selectors. 84 */ 85 public void addDownloadSelection(List<DownloadSelection> list) {} 79 86 80 87 /** -
src/org/openstreetmap/josm/plugins/PluginProxy.java
r168 r237 1 1 package org.openstreetmap.josm.plugins; 2 2 3 import java.util.List; 4 3 5 import org.openstreetmap.josm.gui.MapFrame; 6 import org.openstreetmap.josm.gui.download.DownloadSelection; 4 7 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 5 8 … … 41 44 } 42 45 } 46 47 @Override public void addDownloadSelection(List<DownloadSelection> list) { 48 try { 49 plugin.getClass().getMethod("getDownloadSelection", List.class).invoke(plugin); 50 } catch (NoSuchMethodException e) { 51 // ignore 52 } catch (Exception e) { 53 throw new PluginException(this, info.name, e); 54 } 55 } 43 56 }
Note:
See TracChangeset
for help on using the changeset viewer.