jas.util.pluginmanager
Class PluginManager
java.lang.Object
|
+--jas.util.pluginmanager.PluginManager
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
- public class PluginManager
- extends java.lang.Object
- implements java.awt.event.ActionListener
Constructor Summary |
PluginManager(java.lang.String system,
java.lang.String user)
The plugin manager class is used to manage all of the plugins in jas. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginManager
public PluginManager(java.lang.String system,
java.lang.String user)
- The plugin manager class is used to manage all of the plugins in jas. The pluginmanagerui,
installpluginsui and updatepluginsui classes receive and report their information from
this class.
getSystemDirectory
public java.lang.String getSystemDirectory()
- This method will return either of the two possible install directory paths. If the argument
is true then the system path will be returned, if false then the user path will be returned.
getUserDirectory
public java.lang.String getUserDirectory()
setPluginLoadedAtStart
public void setPluginLoadedAtStart(java.lang.String pluginname,
java.lang.String version,
java.lang.String path,
java.lang.String file)
- Called when a plugin is loaded at startup
removeAvailablePluginList
protected void removeAvailablePluginList(PluginProperties removeplugin)
getLoadedPluginList
protected java.util.Vector getLoadedPluginList()
- Returns list of loaded plugins properties
getAvailablePluginList
protected java.util.Vector getAvailablePluginList()
getNotInstalledPluginList
protected java.util.Vector getNotInstalledPluginList()
initializePluginList
public void initializePluginList()
- This method is called when the plugin manager menu item is selected. It reads the known jas plugin
informattion from the jasplugin.xml file and adds them to the available plugins list. Finally if
calls the checkLoadedAtStart method set those plugins as loaded. Returns true if plugin xml file was
previously read and ok or if first time read is ok. Returns false otherwise and an error message is displayed.
getReadPluginXMLOK
public boolean getReadPluginXMLOK()
getOutDatedPluginList
protected java.util.Vector getOutDatedPluginList()
showPluginManager
public void showPluginManager()
- Builds test app and menu items
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener