Package gov.nih.mipav.plugins
Class PlugInBundle
- java.lang.Object
-
- gov.nih.mipav.plugins.PlugInBundle
-
- All Implemented Interfaces:
PlugIn
public abstract class PlugInBundle extends java.lang.Object implements PlugIn
An abstract class for a plugin which reports other available plugins bundled inside of it. These plugins are then shown individually under the plugin menu and started by this plugin. Any PlugInBundle subclass should override the getBundledPlugIns() method- Author:
- mccreedy
-
-
Constructor Summary
Constructors Constructor Description PlugInBundle()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Vector<BundledPlugInInfo>
getBundledPlugIns()
Subclasses should override this method to return the list of plugins that they encompass.abstract void
run(int pluginIndex)
Runs the plugin whose name is given by the location in the vector returned bygetBundledPlugIns()
.
-
-
-
Method Detail
-
getBundledPlugIns
public java.util.Vector<BundledPlugInInfo> getBundledPlugIns()
Subclasses should override this method to return the list of plugins that they encompass.- Returns:
- A list of plugins that are bundled by this class.
-
run
public abstract void run(int pluginIndex)
Runs the plugin whose name is given by the location in the vector returned bygetBundledPlugIns()
.- Parameters:
pluginIndex
- the index of the vector returned bygetBundledPlugIns()
-
-