Interface ISearchHistory
-
- All Known Implementing Classes:
DefaultSearchHistory
,EclipsePreferencesPersistableSearchHistory
,EmptySearchHistory
,EventHandlersInMemorySearchHistory
,InMemorySearchHistory
,PersistableSearchHistoryBase
,SelectTypeDialog.State
,TablesAndFieldsTab.SourcesSearchHistory
public interface ISearchHistory
Defines public contract forSearchBox
history.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_PATTERNS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getActivePattern()
List<String>
getRecentPatterns(int maxPatterns)
Return recent history patterns.void
savePattern(String pattern)
Saves pattern in the history.
-
-
-
Field Detail
-
ALL_PATTERNS
static final int ALL_PATTERNS
- See Also:
- Constant Field Values
-
-
Method Detail
-
savePattern
void savePattern(String pattern)
Saves pattern in the history.- Parameters:
pattern
- pattern to save.
-
getActivePattern
String getActivePattern()
- Returns:
- active pattern or empty string if there is no one.
-
getRecentPatterns
List<String> getRecentPatterns(int maxPatterns)
Return recent history patterns. UseALL_PATTERNS
to obtain all patterns stored in the history.- Parameters:
maxPatterns
- maximum number of patterns to return.- Returns:
- recent patterns or empty iterable if there are no patterns.
-
-