Class AbstractSearchHandler

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com._1c.g5.v8.dt.internal.search.ui.AbstractSearchHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
Direct Known Subclasses:
FindReferencesToMdObjectHandler

public abstract class AbstractSearchHandler extends org.eclipse.core.commands.AbstractHandler
Base template of Configuratin search command handler

The implementation classes must define methods to check appropriate event to this handle, create search context, and provide search query executor

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract ISearchInput
    createSearchInput(org.eclipse.core.commands.ExecutionEvent event)
    Create search context input object suitable for performing a search query executor
    final Object
    execute(org.eclipse.core.commands.ExecutionEvent event)
     
    protected abstract ISearchQueryExecutor
    Determine executor that will search
    protected abstract boolean
    isAppropriate(org.eclipse.core.commands.ExecutionEvent event)
    Check appropriate event to this handle

    Methods inherited from class org.eclipse.core.commands.AbstractHandler

    addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractSearchHandler

      public AbstractSearchHandler()
  • Method Details

    • execute

      public final Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
      Throws:
      org.eclipse.core.commands.ExecutionException
    • isAppropriate

      protected abstract boolean isAppropriate(org.eclipse.core.commands.ExecutionEvent event)
      Check appropriate event to this handle
      Parameters:
      event - containing all the information about the current state of the application, cannot be null
      Returns:
      true if this handle can execute search for specified event, or false in otherwise
    • createSearchInput

      protected abstract ISearchInput createSearchInput(org.eclipse.core.commands.ExecutionEvent event)
      Create search context input object suitable for performing a search query executor
      Parameters:
      event - containing all the information about the current state of the application, cannot be null
      Returns:
      instance of ISearchInput, never null
    • getExecutor

      protected abstract ISearchQueryExecutor getExecutor()
      Determine executor that will search
      Returns:
      instance of ISearchQueryExecutor, cannot be null