org.freehep.jas.plugin.pluginmanager
Class PluginManager
java.lang.Object
org.freehep.application.studio.Plugin
org.freehep.jas.plugin.pluginmanager.PluginManager
- All Implemented Interfaces:
- Runnable, PreferencesTopic
public class PluginManager
- extends org.freehep.application.studio.Plugin
- implements Runnable, PreferencesTopic
A Plugin which provides a Plugin Manager.
- Version:
- $Id: PluginManager.java 14095 2013-01-29 20:57:42Z tonyj $
- Author:
- tonyj
Method Summary |
protected void |
applicationVisible()
|
boolean |
apply(JComponent panel)
Called when the user pushes the apply button in the preferences dialog. |
JComponent |
component()
Get the component to display in the preferences dialog |
protected void |
init()
|
void |
installPlugins(List downloadedPlugins,
org.freehep.application.studio.ExtensionClassLoader loader)
|
String[] |
path()
Specifies where in the preferences tree this item should appear. |
void |
run()
|
Methods inherited from class org.freehep.application.studio.Plugin |
addMenu, canBeShutDown, getApplication, postInit, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginManager
public PluginManager()
init
protected void init()
throws SAXException,
IOException
- Overrides:
init
in class org.freehep.application.studio.Plugin
- Throws:
SAXException
IOException
run
public void run()
- Specified by:
run
in interface Runnable
apply
public boolean apply(JComponent panel)
- Description copied from interface:
PreferencesTopic
- Called when the user pushes the apply button in the preferences dialog.
This is also called if the user changes to another preferences topic, or
if the user hits OK to dismiss the preferences dialog.
- Specified by:
apply
in interface PreferencesTopic
- Parameters:
panel
- The component currently being displayed
- Returns:
- true if success, false if an error occured (invalid input)
- See Also:
PreferencesTopic.component()
component
public JComponent component()
- Description copied from interface:
PreferencesTopic
- Get the component to display in the preferences dialog
- Specified by:
component
in interface PreferencesTopic
- Returns:
- The component to be used.
path
public String[] path()
- Description copied from interface:
PreferencesTopic
- Specifies where in the preferences tree this item should appear.
- Specified by:
path
in interface PreferencesTopic
- Returns:
- The path under which this topic should be displayed in the preferences dialog.
installPlugins
public void installPlugins(List downloadedPlugins,
org.freehep.application.studio.ExtensionClassLoader loader)
applicationVisible
protected void applicationVisible()
- Overrides:
applicationVisible
in class org.freehep.application.studio.Plugin
Copyright © 2013. All Rights Reserved.