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
toolFields inherited from class docking.ComponentProvider
DEFAULT_WINDOW_GROUP, dockingTool -
Constructor Summary
ConstructorsConstructorDescriptionMemorySearchProvider(MemorySearchPlugin plugin, Navigatable navigatable, SearchSettings settings, MemorySearchOptions options, SearchHistory history) -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is the callback that will happen when the user presses the 'X' button of a provider.voidNotifies the component provider that it is now the active providervoidcontextChanged(ActionContext context) Called when the context changesprotected ActionContextcreateContext(Component sourceComponent, Object contextObject) A default method for creating an action context for this provider, using the givencontext objectand componentvoidCallback indicating that the specifiedDomainObjecthas been closed.Returns the component to be displayedbooleanisBusy()booleanvoidvoidRemoves this provider from the tool.voidPerforms a scan on the current results, keeping only the results that match the type of scan.voidsearch()voidsetSearchCombiner(Combiner combiner) voidsetSearchInput(String input) voidsetSearchSelectionOnly(boolean b) voidsetSettings(SearchSettings settings) voidshowOptions(boolean b) voidshowScanPanel(boolean b) voidshowSearchPanel(boolean b) Methods inherited from class ghidra.framework.plugintool.ComponentProviderAdapter
getToolMethods inherited from class docking.ComponentProvider
addLocalAction, addToTool, addToToolbar, adjustFontSize, canBeParent, componentDeactived, componentHidden, componentMadeDisplayable, 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, isShowing, 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:ComponentProviderReturns the component to be displayed- Specified by:
getComponentin 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:ComponentProviderNotifies the component provider that it is now the active provider- Overrides:
componentActivatedin classComponentProvider
-
closeComponent
public void closeComponent()Description copied from class:ComponentProviderThis 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:
closeComponentin classComponentProvider
-
removeFromTool
public void removeFromTool()Description copied from class:ComponentProviderRemoves this provider from the tool.- Overrides:
removeFromToolin classComponentProvider
-
contextChanged
Description copied from interface:DockingContextListenerCalled when the context changes- Specified by:
contextChangedin interfaceDockingContextListener- Parameters:
context- the context
-
domainObjectClosed
Description copied from interface:DomainObjectClosedListenerCallback indicating that the specifiedDomainObjecthas been closed.- Specified by:
domainObjectClosedin 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
-
getResultsPanel
-
setSettings
-
setSearchCombiner
-
isSearchSelection
public boolean isSearchSelection() -
getByteString
-
createContext
Description copied from class:ComponentProviderA default method for creating an action context for this provider, using the givencontext objectand component- Overrides:
createContextin classComponentProvider- Parameters:
sourceComponent- the component that is the target of the context being createdcontextObject- the provider-specific context object- Returns:
- the new context
-