Package ghidra.framework.plugintool
Class PluginConfigurationModel
- java.lang.Object
-
- ghidra.framework.plugintool.PluginConfigurationModel
-
public class PluginConfigurationModel extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PluginConfigurationModel(PluginTool tool)
PluginConfigurationModel(PluginTool tool, javax.swing.event.ChangeListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllPlugins(PluginPackage pluginPackage)
void
addPlugin(PluginDescription pluginDescription)
java.util.Set<DockingActionIf>
getActionsForPlugin(PluginDescription pluginDescription)
Returns all of the actions loaded by the Plugin represented by the given PluginDescription.java.util.List<PluginDescription>
getAllPluginDescriptions()
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.PluginPackageState
getPackageState(PluginPackage pluginPackage)
java.util.List<PluginDescription>
getPluginDescriptions(PluginPackage pluginPackage)
java.util.List<PluginPackage>
getPluginPackages()
boolean
hasDependencies(PluginDescription pluginDependency)
Return whether the plugin corresponding to the given PluginDescription has other plugins depending on a service it provides.boolean
isLoaded(PluginDescription pluginDescription)
void
removeAllPlugins(PluginPackage pluginPackage)
void
removePlugin(PluginDescription pluginDescription)
-
-
-
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()
-
getPluginDescriptions
public java.util.List<PluginDescription> getPluginDescriptions(PluginPackage pluginPackage)
-
isLoaded
public boolean isLoaded(PluginDescription pluginDescription)
-
getPackageState
public PluginPackageState getPackageState(PluginPackage pluginPackage)
-
addPlugin
public void addPlugin(PluginDescription pluginDescription)
-
removeAllPlugins
public void removeAllPlugins(PluginPackage pluginPackage)
-
addAllPlugins
public void addAllPlugins(PluginPackage pluginPackage)
-
removePlugin
public void removePlugin(PluginDescription pluginDescription)
-
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()
-
-