Changeset 292 in josm for src/org/openstreetmap/josm/plugins/PluginProxy.java
- Timestamp:
- 2007-07-19T23:19:21+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/plugins/PluginProxy.java
r267 r292 19 19 public final Object plugin; 20 20 public final PluginInformation info; 21 public boolean misbehaving = false;22 21 23 22 public PluginProxy(Object plugin, PluginInformation info) { 24 23 this.plugin = plugin; 25 24 this.info = info; 26 27 // setting name of the plugin by reflection28 if (plugin instanceof Plugin) {29 try {30 Plugin.class.getDeclaredField("name").set(plugin, info.name);31 } catch (Exception e) {32 if (e instanceof RuntimeException)33 throw (RuntimeException)e;34 throw new RuntimeException(e);35 }36 }37 25 } 38 26
Note:
See TracChangeset
for help on using the changeset viewer.
