Changeset 168 in josm for src/org/openstreetmap/josm/plugins
- Timestamp:
- 2006-11-25T16:41:58+01:00 (18 years ago)
- Location:
- src/org/openstreetmap/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/plugins/Plugin.java
r159 r168 11 11 import org.openstreetmap.josm.Main; 12 12 import org.openstreetmap.josm.gui.MapFrame; 13 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 13 14 14 15 /** … … 69 70 70 71 /** 72 * Called in the preferences dialog to create a preferences page for the plugin, 73 * if any available. 74 */ 75 public PreferenceSetting getPreferenceSetting() {return null;} 76 77 78 /** 71 79 * Copies the ressource 'from' to the file in the plugin directory named 'to'. 72 80 */ -
src/org/openstreetmap/josm/plugins/PluginProxy.java
r154 r168 2 2 3 3 import org.openstreetmap.josm.gui.MapFrame; 4 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 4 5 5 6 … … 30 31 } 31 32 } 33 34 @Override public PreferenceSetting getPreferenceSetting() { 35 try { 36 return (PreferenceSetting)plugin.getClass().getMethod("getPreferenceSetting").invoke(plugin); 37 } catch (NoSuchMethodException e) { 38 return null; 39 } catch (Exception e) { 40 throw new PluginException(this, info.name, e); 41 } 42 } 32 43 }
Note:
See TracChangeset
for help on using the changeset viewer.