Class EclipsePreferencesPersistableSearchHistory
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.controls.search.PersistableSearchHistoryBase
-
- com._1c.g5.v8.dt.common.ui.controls.search.EclipsePreferencesPersistableSearchHistory
-
- All Implemented Interfaces:
ISearchHistory
- Direct Known Subclasses:
SelectTypeDialog.State
public class EclipsePreferencesPersistableSearchHistory extends PersistableSearchHistoryBase
Search history that stores its state in Eclipse preferences.- See Also:
IEclipsePreferences
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.common.ui.controls.search.ISearchHistory
ALL_PATTERNS
-
-
Constructor Summary
Constructors Constructor Description EclipsePreferencesPersistableSearchHistory(String rootPath)
Instantiates a new search history.EclipsePreferencesPersistableSearchHistory(org.eclipse.core.runtime.preferences.IEclipsePreferences root)
Instantiates a new search history.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadState()
Loads the state.protected void
saveState()
Saves the state.-
Methods inherited from class com._1c.g5.v8.dt.common.ui.controls.search.PersistableSearchHistoryBase
getActivePattern, getPatterns, getRecentPatterns, savePattern
-
-
-
-
Constructor Detail
-
EclipsePreferencesPersistableSearchHistory
public EclipsePreferencesPersistableSearchHistory(org.eclipse.core.runtime.preferences.IEclipsePreferences root)
Instantiates a new search history.- Parameters:
root
- preferences root, history preferences will be stored as subpreference under it.
-
EclipsePreferencesPersistableSearchHistory
public EclipsePreferencesPersistableSearchHistory(String rootPath)
Instantiates a new search history.- Parameters:
rootPath
- preferences root path, history preferences will be stored as subpreference under it.
-
-
Method Detail
-
saveState
protected void saveState()
Saves the state.- Specified by:
saveState
in classPersistableSearchHistoryBase
-
loadState
protected void loadState()
Loads the state.- Specified by:
loadState
in classPersistableSearchHistoryBase
-
-