Package ghidra.plugins.fsbrowser
Class TextEditorComponentProvider
java.lang.Object
docking.ComponentProvider
ghidra.framework.plugintool.ComponentProviderAdapter
ghidra.plugins.fsbrowser.TextEditorComponentProvider
- All Implemented Interfaces:
ActionContextProvider
,HelpDescriptor
-
Field Summary
Fields inherited from class ghidra.framework.plugintool.ComponentProviderAdapter
tool
Fields inherited from class docking.ComponentProvider
DEFAULT_WINDOW_GROUP, dockingTool
-
Constructor Summary
ConstructorDescriptionTextEditorComponentProvider
(FileSystemBrowserPlugin plugin, String textFileName, String text) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This is the callback that will happen when the user presses the 'X' button of a provider.protected void
Returns the component to be displayedgetText()
Methods inherited from class ghidra.framework.plugintool.ComponentProviderAdapter
getTool
Methods inherited from class docking.ComponentProvider
addLocalAction, addToTool, addToToolbar, adjustFontSize, canBeParent, componentActivated, componentDeactived, componentHidden, componentShown, contextChanged, createContext, createContext, createContext, getActionContext, getBaseIcon, getContextType, getDefaultWindowPosition, getHelpInfo, getHelpLocation, getHelpObject, getIcon, getInstanceID, getIntraGroupPosition, getLocalActions, getMappedName, getMappedOwner, getName, getOwner, getSubTitle, getTabText, getTitle, getWindowGroup, getWindowSubMenuName, initializeInstanceID, isActive, isFocusedProvider, isInTool, isSnapshot, isTransient, isVisible, registerAdjustableFontId, registerProviderNameOwnerChange, removeAllLocalActions, removeFromTool, removeLocalAction, requestFocus, resetFontSize, setCustomSubTitle, setCustomTabText, setCustomTitle, setDefaultFocusComponent, setDefaultWindowPosition, setHelpLocation, setIcon, setIntraGroupPosition, setKeyBinding, setSubTitle, setTabText, setTitle, setTransient, setVisible, setWindowGroup, setWindowMenuGroup, toFront, toString
-
Constructor Details
-
TextEditorComponentProvider
public TextEditorComponentProvider(FileSystemBrowserPlugin plugin, String textFileName, String text)
-
-
Method Details
-
getText
-
doSelectFont
protected void doSelectFont() -
closeComponent
public void closeComponent()Description copied from class:ComponentProvider
This is the callback that will happen when the user presses the 'X' button of a provider. Transient providers will be removed from the tool completely. Non-transient providers will merely be hidden.Subclasses may override this method to prevent a provider from being closed; for example, if an editor has unsaved changes, then this method could prevent the close from happening.
- Overrides:
closeComponent
in classComponentProvider
-
getComponent
Description copied from class:ComponentProvider
Returns the component to be displayed- Specified by:
getComponent
in classComponentProvider
- Returns:
- the component to be displayed
-