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 ISearchInput
createSearchInput
(org.eclipse.core.commands.ExecutionEvent event) Create search context input object suitable for performing a search query executorfinal Object
execute
(org.eclipse.core.commands.ExecutionEvent event) protected abstract ISearchQueryExecutor
Determine executor that will searchprotected abstract boolean
isAppropriate
(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, setEnabled
Methods 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:
true
if this handle can execute search for specified event, orfalse
in 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
-