Class SearchResultUpdater
java.lang.Object
com._1c.g5.v8.dt.internal.search.ui.SearchResultUpdater
- All Implemented Interfaces:
IServiceContextLifecycleListener,org.eclipse.search.ui.IQueryListener
public class SearchResultUpdater
extends Object
implements org.eclipse.search.ui.IQueryListener, IServiceContextLifecycleListener
Service context lifecycle listener for update search results.
Runs update of search view, when project in results goin rebuild, close or removed
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResultUpdater(IBmModelManager bmModelManager, IServicesOrchestrator servicesOrchestrator) Create a instance of search result updater -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextStateChanged(ILifecycleContext context, ServiceState state) Called right after the major state change of the given context.voidinit(SearchResult result) Init instance of search result updatervoidqueryAdded(org.eclipse.search.ui.ISearchQuery query) voidqueryFinished(org.eclipse.search.ui.ISearchQuery query) voidqueryRemoved(org.eclipse.search.ui.ISearchQuery query) voidqueryStarting(org.eclipse.search.ui.ISearchQuery query)
-
Constructor Details
-
SearchResultUpdater
@Inject public SearchResultUpdater(IBmModelManager bmModelManager, IServicesOrchestrator servicesOrchestrator) Create a instance of search result updater- Parameters:
bmModelManager- the implementation ofIBmModelManager, cannot benullservicesOrchestrator- the implementation ofIServicesOrchestrator, cannot benull
-
-
Method Details
-
init
Init instance of search result updater- Parameters:
result- the search result for updates, cannot benull
-
contextStateChanged
Description copied from interface:IServiceContextLifecycleListenerCalled right after the major state change of the given context.- Specified by:
contextStateChangedin interfaceIServiceContextLifecycleListener- Parameters:
context- The context the state is changed for. Cannot benullstate- The current state of the context on the moment of the notification. Cannot benull
-
queryAdded
public void queryAdded(org.eclipse.search.ui.ISearchQuery query) - Specified by:
queryAddedin interfaceorg.eclipse.search.ui.IQueryListener
-
queryRemoved
public void queryRemoved(org.eclipse.search.ui.ISearchQuery query) - Specified by:
queryRemovedin interfaceorg.eclipse.search.ui.IQueryListener
-
queryStarting
public void queryStarting(org.eclipse.search.ui.ISearchQuery query) - Specified by:
queryStartingin interfaceorg.eclipse.search.ui.IQueryListener
-
queryFinished
public void queryFinished(org.eclipse.search.ui.ISearchQuery query) - Specified by:
queryFinishedin interfaceorg.eclipse.search.ui.IQueryListener
-