Class MemorySearchProvider

All Implemented Interfaces:
ActionContextProvider, DockingContextListener, NavigatableRemovalListener, DomainObjectClosedListener, HelpDescriptor

ComponentProvider used to search memory and display search results.
  • Constructor Details

  • Method Details

    • setSearchInput

      public void setSearchInput(String input)
    • getSearchInput

      public String getSearchInput()
    • setSearchSelectionOnly

      public void setSearchSelectionOnly(boolean b)
    • getComponent

      public JComponent getComponent()
      Description copied from class: ComponentProvider
      Returns the component to be displayed
      Specified by:
      getComponent in class ComponentProvider
      Returns:
      the component to be displayed
    • search

      public void search()
    • scan

      public void scan(Scanner scanner)
      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 class ComponentProvider
    • 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 class ComponentProvider
    • removeFromTool

      public void removeFromTool()
      Description copied from class: ComponentProvider
      Removes this provider from the tool.
      Overrides:
      removeFromTool in class ComponentProvider
    • contextChanged

      public void contextChanged(ActionContext context)
      Description copied from interface: DockingContextListener
      Called when the context changes
      Specified by:
      contextChanged in interface DockingContextListener
      Parameters:
      context - the context
    • domainObjectClosed

      public void domainObjectClosed(DomainObject dobj)
      Description copied from interface: DomainObjectClosedListener
      Callback indicating that the specified DomainObject has been closed.
      Specified by:
      domainObjectClosed in interface DomainObjectClosedListener
      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

      public List<MemoryMatch> getSearchResults()
    • getResultsPanel

      public MemorySearchResultsPanel getResultsPanel()
    • setSettings

      public void setSettings(SearchSettings settings)
    • setSearchCombiner

      public void setSearchCombiner(Combiner combiner)
    • isSearchSelection

      public boolean isSearchSelection()
    • getByteString

      public String getByteString()
    • createContext

      protected ActionContext createContext(Component sourceComponent, Object contextObject)
      Description copied from class: ComponentProvider
      A default method for creating an action context for this provider, using the given context object and component
      Overrides:
      createContext in class ComponentProvider
      Parameters:
      sourceComponent - the component that is the target of the context being created
      contextObject - the provider-specific context object
      Returns:
      the new context