|
Cytoscape 2.5.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.plugin.PluginManager
public class PluginManager
Method Summary | |
---|---|
void |
delete()
Takes all objects on the "to-delete" list and deletes them. |
void |
delete(PluginInfo Obj)
Marks the given object for deletion the next time Cytoscape is restarted. |
PluginInfo |
download(PluginInfo Obj)
Downloads given object to the temporary directory. |
PluginInfo |
download(PluginInfo Obj,
cytoscape.task.TaskMonitor taskMonitor)
Downloads given object to the temporary directory. |
List<PluginInfo> |
findUpdates(PluginInfo Plugin)
|
List<PluginInfo> |
findUpdates(PluginInfo Plugin,
cytoscape.task.ui.JTaskConfig jTaskConfig)
Get list of plugins that would update the given plugin. |
static URLClassLoader |
getClassLoader()
Replaces CytoscapeInit.getClassLoader() |
cytoscape.plugin.PluginManager.InquireTask |
getInquireTask(String Url,
PluginInquireAction Action)
Creates a Task for inquiring through a site about plugins. |
File |
getPluginManageDirectory()
|
static PluginManager |
getPluginManager()
Get the PluginManager object. |
List<PluginInfo> |
getPlugins(PluginStatus Status)
Get a list of plugins by status. |
static List<URL> |
getPluginURLs()
Replaces CytoscapeInit.getPluginURLs() |
static List<String> |
getResourcePlugins()
Replaces CytoscapeInit.getResourcePlugins() |
List<PluginInfo> |
inquire(String Url)
Calls the given url, expects document describing plugins available for download |
void |
install()
Sets all plugins on the "install" list to "current" |
void |
install(PluginInfo obj)
Change the given plugin from "install" to "current" status |
void |
loadPlugin(PluginInfo p)
Load a single plugin based on the PluginInfo object given |
void |
loadPlugins(List<String> p)
Parses the plugin input strings and transforms them into the appropriate URLs or resource names. |
static void |
setPluginManageDirectory(String loc)
|
void |
update(PluginInfo Current,
PluginInfo New)
Finds the given version of the new object, sets the old object for deletion and downloads new object to temporary directory |
void |
update(PluginInfo Current,
PluginInfo New,
cytoscape.task.TaskMonitor taskMonitor)
Finds the given version of the new object, sets the old object for deletion and downloads new object to temporary directory |
static boolean |
usingWebstartManager()
Returns true/false based on the System property. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static URLClassLoader getClassLoader()
public static List<String> getResourcePlugins()
public static List<URL> getPluginURLs()
public static boolean usingWebstartManager()
public static PluginManager getPluginManager()
public static void setPluginManageDirectory(String loc)
loc
- Location of plugin download/install directory. If this method
is not called the default is .cytoscape/[cytoscape
version]/pluginspublic File getPluginManageDirectory()
public List<PluginInfo> getPlugins(PluginStatus Status)
Status
-
public List<PluginInfo> inquire(String Url) throws IOException, org.jdom.JDOMException
Url
-
IOException
org.jdom.JDOMException
public cytoscape.plugin.PluginManager.InquireTask getInquireTask(String Url, PluginInquireAction Action)
Url
- Plugin site to connect toAction
- Code to run on the results of the inquiry
public void install()
public void install(PluginInfo obj)
obj
- public void delete(PluginInfo Obj) throws WebstartException
Obj
-
WebstartException
public void delete() throws ManagerException
ManagerException
- If all files fail to delete
WebstartException
- If this method is called from a webstart instancepublic List<PluginInfo> findUpdates(PluginInfo Plugin) throws IOException, org.jdom.JDOMException
IOException
org.jdom.JDOMException
public List<PluginInfo> findUpdates(PluginInfo Plugin, cytoscape.task.ui.JTaskConfig jTaskConfig) throws IOException, org.jdom.JDOMException
Plugin
-
ManagerException
IOException
org.jdom.JDOMException
public void update(PluginInfo Current, PluginInfo New) throws IOException, ManagerException, WebstartException
Current
- PluginInfo object currently installedNew
- PluginInfo object to install
IOException
- Fails to download the file.
ManagerException
- If the plugins don't match or the new one is not a newer
version.
WebstartException
public void update(PluginInfo Current, PluginInfo New, cytoscape.task.TaskMonitor taskMonitor) throws IOException, ManagerException, WebstartException
Current
- PluginInfo object currently installedNew
- PluginInfo object to installtaskMonitor
- TaskMonitor for downloads
IOException
- Fails to download the file.
ManagerException
- If the plugins don't match or the new one is not a newer
version.
WebstartException
public PluginInfo download(PluginInfo Obj) throws IOException, ManagerException
Obj
- PluginInfo object to be downloaded
IOException
ManagerException
public PluginInfo download(PluginInfo Obj, cytoscape.task.TaskMonitor taskMonitor) throws IOException, ManagerException
Obj
- PluginInfo object to be downloadedtaskMonitor
- TaskMonitortempDirectory
- Download to a different temporary directory. Default is
.cytoscape/plugins/[cytoscape version number]
IOException
ManagerException
public void loadPlugin(PluginInfo p) throws MalformedURLException, IOException, ClassNotFoundException, PluginException
PluginInfo
- The plugin to load
MalformedURLException
IOException
ClassNotFoundException
PluginException
public void loadPlugins(List<String> p) throws MalformedURLException, IOException, ClassNotFoundException, PluginException
MalformedURLException
IOException
ClassNotFoundException
PluginException
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |