Changeset 5957 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
- Timestamp:
- 2013-05-11T23:40:04+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r5886 r5957 508 508 if (klass != null) { 509 509 System.out.println(tr("loading plugin ''{0}'' (version {1})", plugin.name, plugin.localversion)); 510 pluginList.add(plugin.load(klass)); 510 PluginProxy pluginProxy = plugin.load(klass); 511 pluginList.add(pluginProxy); 512 Main.addMapFrameListener(pluginProxy); 511 513 } 512 514 msg = null; … … 919 921 } 920 922 921 /**922 * Notified loaded plugins about a new map frame923 *924 * @param old the old map frame925 * @param map the new map frame926 */927 public static void notifyMapFrameChanged(MapFrame old, MapFrame map) {928 for (PluginProxy plugin : pluginList) {929 plugin.mapFrameInitialized(old, map);930 }931 }932 933 923 public static Object getPlugin(String name) { 934 924 for (PluginProxy plugin : pluginList)
Note:
See TracChangeset
for help on using the changeset viewer.