Class SearchFilterWithHistory


  • public class SearchFilterWithHistory
    extends ItemFilter
    The search filter with history to use in the search box for objects and roles search.
    • Constructor Detail

      • SearchFilterWithHistory

        public SearchFilterWithHistory​(IResourceLookup resourceLookup,
                                       IBmEmfIndexManager bmEmfIndexManager,
                                       org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider)
        Instantiates a new search filter with column label provider.
        Parameters:
        resourceLookup - the resource lookup, can not be null
        bmEmfIndexManager - the Emf index manager, can not be null
        qualifiedNameProvider - the qualified name provider, can not be null
    • Method Detail

      • select

        public boolean select​(TreeViewerItem item)
        Description copied from class: ItemFilter
        Returns whether the given item makes it through this filter.
        Specified by:
        select in class ItemFilter
        Parameters:
        item - the given item, can not be null
        Returns:
        true if the item is included in the filtered set and false otherwise
      • getSearchHistory

        public ISearchHistory getSearchHistory()
        Gets the filter search history. Override it if you want to change the filter search history.
        Returns:
        the filter search history, can not be null
      • dispose

        public void dispose()
        Cleans all stored calculated data to perform search quickly.