Class SearchFilterWithHistory

    • Constructor Detail

      • SearchFilterWithHistory

        public SearchFilterWithHistory()
        Creates a new search filter with InMemorySearchHistory as search history.
      • SearchFilterWithHistory

        public SearchFilterWithHistory​(ISearchHistory searchHistory)
        Creates a new search filter with the given search history.
        Parameters:
        searchHistory - the search history shared between filter and other components, can not be null
      • SearchFilterWithHistory

        public SearchFilterWithHistory​(ISearchHistory searchHistory,
                                       int columnIndex)
        Creates a new search filter with the given search history and column index.
        Parameters:
        searchHistory - the search history shared between filter and other components, can not be null
        columnIndex - the column index, may be -1 if the viewer label provider is used. If the required column label provider the column index must be non-negative
    • Method Detail

      • 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()
        Disposes this search filter.
      • getColumnIndex

        protected int getColumnIndex()
        Gets the column index used to define label provider.
        Returns:
        the column index