Package ghidra.framework.plugintool
Class ComponentProviderAdapter
- java.lang.Object
-
- docking.ComponentProvider
-
- ghidra.framework.plugintool.ComponentProviderAdapter
-
- All Implemented Interfaces:
ActionContextProvider
,HelpDescriptor
- Direct Known Subclasses:
DbViewerProvider
,DomainEventComponentProvider
,DomainFolderChangesDisplayComponentProvider
,EventDisplayComponentProvider
,ListingComparisonProvider
,ListingMergePanelProvider
,NavigatableComponentProviderAdapter
,PropertyManagerProvider
public abstract class ComponentProviderAdapter extends ComponentProvider
Extends theComponentProvider
to fit into the Plugin architecture by taking in aPluginTool
which extendsTool
. Most implementers will want to extend this class instead of the ComponentProvider class because they will want to access the extra methods provided by PluginTool over DockingTool without having to cast the dockingTool variable.
-
-
Field Summary
Fields Modifier and Type Field Description protected PluginTool
tool
-
Fields inherited from class docking.ComponentProvider
DEFAULT_WINDOW_GROUP, dockingTool
-
-
Constructor Summary
Constructors Constructor Description ComponentProviderAdapter(PluginTool tool, java.lang.String name, java.lang.String owner)
Creates a new component provider with a default location ofWindowPosition.WINDOW
.ComponentProviderAdapter(PluginTool tool, java.lang.String name, java.lang.String owner, java.lang.Class<?> contextType)
Creates a new component provider with a default location ofWindowPosition.WINDOW
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginTool
getTool()
-
Methods inherited from class docking.ComponentProvider
addLocalAction, addToTool, addToToolbar, closeComponent, componentActivated, componentDeactived, componentHidden, componentShown, contextChanged, createContext, createContext, createContext, getActionContext, getComponent, getContextType, getDefaultWindowPosition, getHelpInfo, getHelpLocation, getHelpObject, getIcon, getInstanceID, getIntraGroupPosition, getMappedName, getMappedOwner, getName, getOwner, getSubTitle, getTabText, getTitle, getWindowGroup, getWindowSubMenuName, initializeInstanceID, isActive, isFocusedProvider, isInTool, isSnapshot, isTransient, isVisible, registerProviderNameOwnerChange, removeAllLocalActions, removeFromTool, removeLocalAction, requestFocus, setDefaultWindowPosition, setHelpLocation, setIcon, setIntraGroupPosition, setKeyBinding, setSubTitle, setTabText, setTitle, setTransient, setVisible, setWindowGroup, setWindowMenuGroup, toFront, toString
-
-
-
-
Field Detail
-
tool
protected PluginTool tool
-
-
Constructor Detail
-
ComponentProviderAdapter
public ComponentProviderAdapter(PluginTool tool, java.lang.String name, java.lang.String owner)
Creates a new component provider with a default location ofWindowPosition.WINDOW
.- Parameters:
tool
- the plugin tool.name
- The providers name. This is used to group similar providers into a tab within the same window.owner
- The owner of this provider, usually a plugin name.
-
ComponentProviderAdapter
public ComponentProviderAdapter(PluginTool tool, java.lang.String name, java.lang.String owner, java.lang.Class<?> contextType)
Creates a new component provider with a default location ofWindowPosition.WINDOW
.- Parameters:
tool
- the plugin tool.name
- The providers name. This is used to group similar providers into a tab within the same window.owner
- The owner of this provider, usually a plugin namecontextType
- the type of context supported by this provider; may be null
-
-
Method Detail
-
getTool
public PluginTool getTool()
- Overrides:
getTool
in classComponentProvider
-
-