Class MemorySearchProvider
java.lang.Object
docking.ComponentProvider
ghidra.framework.plugintool.ComponentProviderAdapter
ghidra.features.base.memsearch.gui.MemorySearchProvider
- All Implemented Interfaces:
ActionContextProvider
,DockingContextListener
,NavigatableRemovalListener
,DomainObjectClosedListener
,HelpDescriptor
public class MemorySearchProvider
extends ComponentProviderAdapter
implements DockingContextListener, NavigatableRemovalListener, DomainObjectClosedListener
ComponentProvider used to search memory and display search results.
-
Field Summary
Fields inherited from class ghidra.framework.plugintool.ComponentProviderAdapter
tool
Fields inherited from class docking.ComponentProvider
DEFAULT_WINDOW_GROUP, dockingTool
-
Constructor Summary
ConstructorDescriptionMemorySearchProvider
(MemorySearchPlugin plugin, Navigatable navigatable, SearchSettings settings, MemorySearchOptions options, SearchHistory history) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Notifies the component provider that it is now the active providervoid
contextChanged
(ActionContext context) Called when the context changesprotected ActionContext
createContext
(Component sourceComponent, Object contextObject) A default method for creating an action context for this provider, using the givencontext object
and componentvoid
Callback indicating that the specifiedDomainObject
has been closed.Returns the component to be displayedboolean
isBusy()
boolean
void
void
Removes this provider from the tool.void
Performs a scan on the current results, keeping only the results that match the type of scan.void
search()
void
setSearchInput
(String input) void
setSearchSelectionOnly
(boolean b) void
setSettings
(SearchSettings settings) void
showOptions
(boolean b) void
showScanPanel
(boolean b) void
showSearchPanel
(boolean b) Methods inherited from class ghidra.framework.plugintool.ComponentProviderAdapter
getTool
Methods inherited from class docking.ComponentProvider
addLocalAction, addToTool, addToToolbar, adjustFontSize, canBeParent, closeComponent, componentDeactived, componentHidden, componentShown, contextChanged, 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, removeLocalAction, requestFocus, resetFontSize, setCustomSubTitle, setCustomTabText, setCustomTitle, setDefaultFocusComponent, setDefaultWindowPosition, setHelpLocation, setIcon, setIntraGroupPosition, setKeyBinding, setSubTitle, setTabText, setTitle, setTransient, setVisible, setWindowGroup, setWindowMenuGroup, toFront, toString
-
Constructor Details
-
Method Details
-
setSearchInput
-
getSearchInput
-
setSearchSelectionOnly
public void setSearchSelectionOnly(boolean b) -
getComponent
Description copied from class:ComponentProvider
Returns the component to be displayed- Specified by:
getComponent
in classComponentProvider
- Returns:
- the component to be displayed
-
search
public void search() -
scan
Performs a scan on the current results, keeping only the results that match the type of scan. Note: this method is public to facilitate testing.- Parameters:
scanner
- the scanner to use to reduce the results.
-
componentActivated
public void componentActivated()Description copied from class:ComponentProvider
Notifies the component provider that it is now the active provider- Overrides:
componentActivated
in classComponentProvider
-
removeFromTool
public void removeFromTool()Description copied from class:ComponentProvider
Removes this provider from the tool.- Overrides:
removeFromTool
in classComponentProvider
-
contextChanged
Description copied from interface:DockingContextListener
Called when the context changes- Specified by:
contextChanged
in interfaceDockingContextListener
- Parameters:
context
- the context
-
domainObjectClosed
Description copied from interface:DomainObjectClosedListener
Callback indicating that the specifiedDomainObject
has been closed.- Specified by:
domainObjectClosed
in interfaceDomainObjectClosedListener
- Parameters:
dobj
- domain object
-
showOptions
public void showOptions(boolean b) -
showScanPanel
public void showScanPanel(boolean b) -
showSearchPanel
public void showSearchPanel(boolean b) -
isBusy
public boolean isBusy() -
getSearchResults
-
setSettings
-
isSearchSelection
public boolean isSearchSelection() -
getByteString
-
createContext
Description copied from class:ComponentProvider
A default method for creating an action context for this provider, using the givencontext object
and component- Overrides:
createContext
in classComponentProvider
- Parameters:
sourceComponent
- the component that is the target of the context being createdcontextObject
- the provider-specific context object- Returns:
- the new context
-