Class PluginConfigurationModel


  • public class PluginConfigurationModel
    extends java.lang.Object
    • Constructor Detail

      • PluginConfigurationModel

        public PluginConfigurationModel​(PluginTool tool)
      • PluginConfigurationModel

        public PluginConfigurationModel​(PluginTool tool,
                                        javax.swing.event.ChangeListener listener)
    • Method Detail

      • getPluginPackages

        public java.util.List<PluginPackage> getPluginPackages()
      • removeAllPlugins

        public void removeAllPlugins​(PluginPackage pluginPackage)
      • addAllPlugins

        public void addAllPlugins​(PluginPackage pluginPackage)
      • hasDependencies

        public boolean hasDependencies​(PluginDescription pluginDependency)
        Return whether the plugin corresponding to the given PluginDescription has other plugins depending on a service it provides.
        Parameters:
        pluginDependency - PluginDescription of the plugin
        Returns:
        true if the plugin corresponding to the given PluginDescription has at least one plugin depending on a service it provides
      • getActionsForPlugin

        public java.util.Set<DockingActionIf> getActionsForPlugin​(PluginDescription pluginDescription)
        Returns all of the actions loaded by the Plugin represented by the given PluginDescription. An empty list will be returned if no actions are loaded or if the plugin has not been loaded.
        Parameters:
        pluginDescription - The description for which to find loaded actions.
        Returns:
        all of the actions loaded by the Plugin represented by the given PluginDescription.
      • getDependencies

        public java.util.List<PluginDescription> getDependencies​(PluginDescription pd)
        Return the names of the plugins that are dependent on some service that the plugin corresponding to the given PluginDescription provides.
        Parameters:
        pd - PluginDescription of the plugin
      • getAllPluginDescriptions

        public java.util.List<PluginDescription> getAllPluginDescriptions()