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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ISearchInputcreateSearchInput(org.eclipse.core.commands.ExecutionEvent event) Create search context input object suitable for performing a search query executorfinal Objectexecute(org.eclipse.core.commands.ExecutionEvent event) protected abstract ISearchQueryExecutorDetermine executor that will searchprotected abstract booleanisAppropriate(org.eclipse.core.commands.ExecutionEvent event) Check appropriate event to this handleMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
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 benull- Returns:
trueif this handle can execute search for specified event, orfalsein otherwise
-
createSearchInput
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 benull- Returns:
- instance of
ISearchInput, nevernull
-
getExecutor
Determine executor that will search- Returns:
- instance of
ISearchQueryExecutor, cannot benull
-