Package org.openstreetmap.josm.plugins
Class PluginProxy
java.lang.Object
org.openstreetmap.josm.plugins.Plugin
org.openstreetmap.josm.plugins.PluginProxy
- All Implemented Interfaces:
MapFrameListener
Helper class for the JOSM system to communicate with the plugin.
This class should be of no interest for sole plugin writer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PluginClassLoaderprivate final ObjectThe plugin. -
Constructor Summary
ConstructorsConstructorDescriptionPluginProxy(Object plugin, PluginInformation info, PluginClassLoader classLoader) Constructs a newPluginProxy. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled in the download dialog to give the plugin a chance to modify the list of bounding box selectors.Get the class loader for the plugin.Get the plugin object.Called in the preferences dialog to create a preferences page for the plugin, if any available.private voidvoidmapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) Called after Main.mapFrame is initialized.Methods inherited from class org.openstreetmap.josm.plugins.Plugin
getPluginDirs, getPluginInformation, getPluginResourceClassLoader, setPluginInformation
-
Field Details
-
plugin
The plugin. -
classLoader
-
-
Constructor Details
-
PluginProxy
Constructs a newPluginProxy.- Parameters:
plugin- the plugininfo- the associated plugin infoclassLoader- the class loader for the plugin- Since:
- 12322
-
-
Method Details
-
getPlugin
Get the plugin object.- Returns:
- the plugin object
- Since:
- 12322
-
getClassLoader
Get the class loader for the plugin.- Returns:
- the plugin class loader
- Since:
- 12322
-
handlePluginException
-
mapFrameInitialized
Description copied from interface:MapFrameListenerCalled after Main.mapFrame is initialized. (After the first data is loaded). You can use this callback to tweak the newFrame to your needs, as example install an alternative Painter.- Specified by:
mapFrameInitializedin interfaceMapFrameListener- Overrides:
mapFrameInitializedin classPlugin- Parameters:
oldFrame- The old MapFramenewFrame- The new MapFrame
-
getPreferenceSetting
Description copied from class:PluginCalled in the preferences dialog to create a preferences page for the plugin, if any available.- Overrides:
getPreferenceSettingin classPlugin- Returns:
- the preferences dialog, or
null
-
addDownloadSelection
Description copied from class:PluginCalled in the download dialog to give the plugin a chance to modify the list of bounding box selectors.- Overrides:
addDownloadSelectionin classPlugin- Parameters:
list- list of bounding box selectors
-