Package | Description |
---|---|
org.openstreetmap.josm.gui.preferences | |
org.openstreetmap.josm.gui.preferences.plugin | |
org.openstreetmap.josm.plugins |
Modifier and Type | Method and Description |
---|---|
List<PluginInformation> |
PluginPreference.getPluginsScheduledForUpdateOrDownload()
Replies the list of plugins waiting for update or download
|
Modifier and Type | Field and Description |
---|---|
PluginInformation |
PluginListPanel.JPluginCheckBox.pi |
Modifier and Type | Field and Description |
---|---|
private List<PluginInformation> |
PluginPreferencesModel.availablePlugins |
private List<PluginInformation> |
PluginPreferencesModel.displayedPlugins |
private Map<PluginInformation,Boolean> |
PluginPreferencesModel.selectedPluginsMap |
Modifier and Type | Method and Description |
---|---|
PluginInformation |
PluginPreferencesModel.getPluginInformation(String name)
Replies the plugin info with the name
name . null, if no
such plugin info exists. |
Modifier and Type | Method and Description |
---|---|
List<PluginInformation> |
PluginPreferencesModel.getAvailablePlugins()
Replies the set of all available plugins.
|
List<PluginInformation> |
PluginPreferencesModel.getDisplayedPlugins()
Replies the list of plugin informations to display
|
List<PluginInformation> |
PluginPreferencesModel.getNewlyActivatedPlugins()
Replies the set of plugins which have been added by the user to
the set of activated plugins.
|
List<PluginInformation> |
PluginPreferencesModel.getNewlyDeactivatedPlugins()
Replies the set of plugins which have been removed by the user from
the set of activated plugins.
|
List<PluginInformation> |
PluginPreferencesModel.getPluginsScheduledForUpdateOrDownload()
Replies the list of plugins waiting for update or download
|
List<PluginInformation> |
PluginPreferencesModel.getSelectedPlugins()
Replies the list of selected plugin information objects
|
Modifier and Type | Method and Description |
---|---|
protected String |
PluginListPanel.formatCheckboxTooltipText(PluginInformation pi) |
protected String |
PluginListPanel.formatPluginLocalVersion(PluginInformation pi) |
protected String |
PluginListPanel.formatPluginRemoteVersion(PluginInformation pi) |
protected void |
PluginListPanel.PluginCbActionListener.selectRequiredPlugins(PluginInformation info) |
protected void |
PluginPreferencesModel.updateAvailablePlugin(PluginInformation other) |
Modifier and Type | Method and Description |
---|---|
void |
PluginPreferencesModel.clearPendingPlugins(Collection<PluginInformation> plugins)
Removes all the plugin in
plugins from the list of plugins
with a pending download |
void |
PluginPreferencesModel.refreshLocalPluginVersion(Collection<PluginInformation> plugins)
Refreshes the local version field on the plugins in
plugins with
the version in the manifest of the downloaded "jar.new"-file for this plugin. |
void |
PluginPreferencesModel.setAvailablePlugins(Collection<PluginInformation> available) |
void |
PluginPreferencesModel.updateAvailablePlugins(Collection<PluginInformation> fromPluginSite)
Updates the list of plugin information objects with new information from
plugin update sites.
|
Constructor and Description |
---|
JPluginCheckBox(PluginInformation pi,
boolean selected) |
Modifier and Type | Field and Description |
---|---|
private PluginInformation |
Plugin.info
This is the info available for this plugin.
|
Modifier and Type | Field and Description |
---|---|
private List<PluginInformation> |
ReadRemotePluginInformationTask.availablePlugins |
private Map<String,PluginInformation> |
ReadLocalPluginInformationTask.availablePlugins |
private Collection<PluginInformation> |
PluginDownloadTask.downloaded |
private Collection<PluginInformation> |
PluginDownloadTask.failed |
private Collection<PluginInformation> |
PluginDownloadTask.toUpdate |
Modifier and Type | Method and Description |
---|---|
protected static PluginInformation |
PluginListParser.createInfo(String name,
String url,
String manifest)
Creates the plugin information object
|
static PluginInformation |
PluginInformation.findPlugin(String pluginName)
Try to find a plugin after some criterias.
|
PluginInformation |
Plugin.getPluginInformation()
Replies the plugin information object for this plugin
|
Modifier and Type | Method and Description |
---|---|
static List<PluginInformation> |
PluginHandler.buildListOfPluginsToLoad(Component parent,
ProgressMonitor monitor)
Builds the set of plugins to load.
|
protected List<PluginInformation> |
ReadRemotePluginInformationTask.filterDeprecatedPlugins(List<PluginInformation> plugins)
Filter information about deprecated plugins from the list of downloaded
plugins
|
private static Set<PluginInformation> |
PluginHandler.findRequiredPluginsToDownload(Collection<PluginInformation> pluginsToUpdate,
List<PluginInformation> allPlugins,
Set<PluginInformation> pluginsToDownload) |
List<PluginInformation> |
ReadRemotePluginInformationTask.getAvailablePlugins()
Replies the list of plugins described in the downloaded plugin lists
|
List<PluginInformation> |
ReadLocalPluginInformationTask.getAvailablePlugins()
Replies information about available plugins detected by this task.
|
Collection<PluginInformation> |
PluginDownloadTask.getDownloadedPlugins()
Replies the list of plugins whose download has failed
|
Collection<PluginInformation> |
PluginDownloadTask.getFailedPlugins()
Replies the list of successfully downloaded plugins
|
private static Map<String,PluginInformation> |
PluginHandler.loadLocallyAvailablePluginInformation(ProgressMonitor monitor)
Loads locally available plugin information from local plugin jars and from cached
plugin lists.
|
List<PluginInformation> |
PluginListParser.parse(InputStream in)
Parses a plugin information document and replies a list of plugin information objects.
|
static List<PluginInformation> |
PluginHandler.updatePlugins(Component parent,
List<PluginInformation> plugins,
ProgressMonitor monitor)
Updates the plugins in
plugins . |
Modifier and Type | Method and Description |
---|---|
static boolean |
PluginHandler.checkLoadPreconditions(Component parent,
Collection<PluginInformation> plugins,
PluginInformation plugin)
Checks whether all preconditions for loading the plugin
plugin are met. |
static boolean |
PluginHandler.checkRequiredPluginsPreconditions(Component parent,
Collection<PluginInformation> plugins,
PluginInformation plugin,
boolean local)
Checks if required plugins preconditions for loading the plugin
plugin are met. |
protected void |
PluginDownloadTask.download(PluginInformation pi,
File file) |
static void |
PluginHandler.loadPlugin(Component parent,
PluginInformation plugin,
ClassLoader pluginClassLoader)
Loads and instantiates the plugin described by
plugin using
the class loader pluginClassLoader . |
void |
Plugin.setPluginInformation(PluginInformation info)
Sets the plugin information object for this plugin
|
void |
PluginInformation.updateFromJar(PluginInformation other)
Updates the plugin information of this plugin information object with the
plugin information in a plugin information object retrieved from a plugin
jar.
|
void |
PluginInformation.updateFromPluginSite(PluginInformation other)
Updates the plugin information of this plugin information object with the
plugin information in a plugin information object retrieved from a plugin
update site.
|
void |
PluginInformation.updateLocalInfo(PluginInformation info)
Updates the local fields (
localversion , localmainversion , localrequires )
to values contained in the up-to-date fields (version , mainversion , requires )
of the given PluginInformation. |
Modifier and Type | Method and Description |
---|---|
private static void |
PluginListParser.addPluginInformation(List<PluginInformation> ret,
String name,
String url,
String manifest) |
private static void |
PluginHandler.alertFailedPluginUpdate(Component parent,
Collection<PluginInformation> plugins) |
static boolean |
PluginHandler.checkLoadPreconditions(Component parent,
Collection<PluginInformation> plugins,
PluginInformation plugin)
Checks whether all preconditions for loading the plugin
plugin are met. |
static boolean |
PluginHandler.checkRequiredPluginsPreconditions(Component parent,
Collection<PluginInformation> plugins,
PluginInformation plugin,
boolean local)
Checks if required plugins preconditions for loading the plugin
plugin are met. |
static ClassLoader |
PluginHandler.createClassLoader(Collection<PluginInformation> plugins)
Creates a class loader for loading plugin code.
|
protected List<PluginInformation> |
ReadRemotePluginInformationTask.filterDeprecatedPlugins(List<PluginInformation> plugins)
Filter information about deprecated plugins from the list of downloaded
plugins
|
private static Set<PluginInformation> |
PluginHandler.findRequiredPluginsToDownload(Collection<PluginInformation> pluginsToUpdate,
List<PluginInformation> allPlugins,
Set<PluginInformation> pluginsToDownload) |
private static Set<PluginInformation> |
PluginHandler.findRequiredPluginsToDownload(Collection<PluginInformation> pluginsToUpdate,
List<PluginInformation> allPlugins,
Set<PluginInformation> pluginsToDownload) |
private static Set<PluginInformation> |
PluginHandler.findRequiredPluginsToDownload(Collection<PluginInformation> pluginsToUpdate,
List<PluginInformation> allPlugins,
Set<PluginInformation> pluginsToDownload) |
static void |
PluginHandler.loadEarlyPlugins(Component parent,
Collection<PluginInformation> plugins,
ProgressMonitor monitor)
Loads plugins from
plugins which have the flag early
set to true. |
static void |
PluginHandler.loadLatePlugins(Component parent,
Collection<PluginInformation> plugins,
ProgressMonitor monitor)
Loads plugins from
plugins which have the flag early
set to false. |
static void |
PluginHandler.loadPlugins(Component parent,
Collection<PluginInformation> plugins,
ProgressMonitor monitor)
Loads the plugin in
plugins from locally available jar files into
memory. |
static void |
PluginHandler.refreshLocalUpdatedPluginInfo(Collection<PluginInformation> updatedPlugins)
Refreshes the given PluginInformation objects with new contents read from their corresponding jar file.
|
void |
PluginDownloadTask.setPluginsToDownload(Collection<PluginInformation> toUpdate)
Sets the collection of plugins to update.
|
static List<PluginInformation> |
PluginHandler.updatePlugins(Component parent,
List<PluginInformation> plugins,
ProgressMonitor monitor)
Updates the plugins in
plugins . |
Constructor and Description |
---|
Plugin(PluginInformation info)
Creates the plugin
|
PluginProxy(Object plugin,
PluginInformation info) |
Constructor and Description |
---|
PluginDownloadTask(Component parent,
Collection<PluginInformation> toUpdate,
String title)
Creates the download task
|
PluginDownloadTask(ProgressMonitor monitor,
Collection<PluginInformation> toUpdate,
String title)
Creates the task
|