Class PlugInBundle

java.lang.Object
gov.nih.mipav.plugins.PlugInBundle
All Implemented Interfaces:
PlugIn

public abstract class PlugInBundle extends 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
  • Field Details

    • CATEGORY

      public static final String[] CATEGORY
  • Constructor Details

    • PlugInBundle

      public PlugInBundle()
  • Method Details

    • getBundledPlugIns

      public 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 by getBundledPlugIns().
      Parameters:
      pluginIndex - the index of the vector returned by getBundledPlugIns()