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 Details

  • Method Details

    • init

      public void init(SearchResult result)
      Init instance of search result updater
      Parameters:
      result - the search result for updates, cannot be null
    • contextStateChanged

      public void contextStateChanged(ILifecycleContext context, ServiceState state)
      Description copied from interface: IServiceContextLifecycleListener
      Called right after the major state change of the given context.
      Specified by:
      contextStateChanged in interface IServiceContextLifecycleListener
      Parameters:
      context - The context the state is changed for. Cannot be null
      state - The current state of the context on the moment of the notification. Cannot be null
    • queryAdded

      public void queryAdded(org.eclipse.search.ui.ISearchQuery query)
      Specified by:
      queryAdded in interface org.eclipse.search.ui.IQueryListener
    • queryRemoved

      public void queryRemoved(org.eclipse.search.ui.ISearchQuery query)
      Specified by:
      queryRemoved in interface org.eclipse.search.ui.IQueryListener
    • queryStarting

      public void queryStarting(org.eclipse.search.ui.ISearchQuery query)
      Specified by:
      queryStarting in interface org.eclipse.search.ui.IQueryListener
    • queryFinished

      public void queryFinished(org.eclipse.search.ui.ISearchQuery query)
      Specified by:
      queryFinished in interface org.eclipse.search.ui.IQueryListener