public final class JaxoPluginInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addPlugin(JaxoPlugin plugin)
Add a plugin to the list of plugins.
|
java.lang.String |
availablePlugins()
Returns the list of available plugins as a String.
|
java.util.Set |
getAvailablePlugins()
Returns the plugins that are available at runtime.
|
java.util.List |
getExportFormats()
Installed export formats.
|
JaxoImportPlugin |
getImportForExtension(java.lang.String ext)
Return an import plugin that is capable of importing a given format.
|
java.util.List |
getImportFormats()
Installed import formats.
|
static JaxoPluginInfo |
getPluginInfo()
The only method to access the JaxoPluginInfo object.
|
void |
removePlugin(JaxoPlugin plugin)
Removes the given JaxoPlugin from the list of plugins.
|
void |
reValidate()
Re-scans the plugin dir, loading any found plugins.
|
public static JaxoPluginInfo getPluginInfo()
public void reValidate()
public java.lang.String availablePlugins()
public java.util.Set getAvailablePlugins()
public java.util.List getExportFormats()
public java.util.List getImportFormats()
public void addPlugin(JaxoPlugin plugin)
JaxoPluginLoader
.plugin
- the plugin to add. If this is not and instance of either
JaxoExportPlugin
or JaxoImportPlugin
, does nothing.public void removePlugin(JaxoPlugin plugin)
plugin
- the plugin to remove.public JaxoImportPlugin getImportForExtension(java.lang.String ext)
ext
- the file extension.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.