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<SearchData>> 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()
    • getActionContext

      public ActionContext getActionContext(MouseEvent event)
      Description copied from class: ComponentProvider
      Returns the context object which corresponds to the area of focus within this provider's component. Null is returned when there is no context.

      Subclasses should override this method to provider more specific context objects or information.

      Specified by:
      getActionContext in interface ActionContextProvider
      Overrides:
      getActionContext in class ComponentProvider
      Parameters:
      event - popup event which corresponds to this request. Will be null for key-stroke or other non-mouse uses.
    • generateNewProvider

      public void generateNewProvider(Scanner scanner)