Changeset 19050 in josm for trunk/src/org/openstreetmap/josm/plugins/Plugin.java
- Timestamp:
- 2024-04-22T20:59:26+02:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/Plugin.java
r16553 r19050 24 24 * For all purposes of loading dynamic resources, the Plugin's class loader should be used 25 25 * (or else, the plugin jar will not be within the class path). 26 * 26 * <p> 27 27 * A plugin may subclass this abstract base class (but it is optional). 28 * 28 * <p> 29 29 * The actual implementation of this class is optional, as all functions will be called 30 30 * via reflection. This is to be able to change this interface without the need of … … 32 32 * function here (or does provide a function with a mismatching signature), it will not 33 33 * be called. That simple. 34 * 34 * <p> 35 35 * Or in other words: See this base class as an documentation of what automatic callbacks 36 36 * are provided (you can register yourself to more callbacks in your plugin class 37 37 * constructor). 38 * 38 * <p> 39 39 * Subclassing Plugin and overriding some functions makes it easy for you to keep sync 40 40 * with the correct actual plugin architecture of JOSM. … … 47 47 * This is the info available for this plugin. You can access this from your 48 48 * constructor. 49 * 49 * <p> 50 50 * (The actual implementation to request the info from a static variable 51 51 * is a bit hacky, but it works). … … 55 55 private final IBaseDirectories pluginBaseDirectories = new PluginBaseDirectories(); 56 56 57 private class PluginBaseDirectories implements IBaseDirectories {57 private final class PluginBaseDirectories implements IBaseDirectories { 58 58 private File preferencesDir; 59 59 private File cacheDir;
Note:
See TracChangeset
for help on using the changeset viewer.