public final class SearchHistory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADD_TO_HISTORY
Property name for adding pattern that was not in history
Firing:
oldValue - null
newValue - added pattern
|
static String |
ADD_TO_REPLACE
Property name for adding replace pattern that was not in history
Firing:
oldValue - null
newValue - added pattern
|
static String |
LAST_SELECTED
Deprecated.
just changes in history
|
Modifier and Type | Method and Description |
---|---|
void |
add(SearchPattern pattern)
Adds SearchPattern to SearchHistory
|
void |
addPropertyChangeListener(PropertyChangeListener pcl)
Adds a property change listener.
|
void |
addReplace(ReplacePattern pattern)
Adds ReplacePattern to ReplaceHistory
|
static SearchHistory |
getDefault() |
SearchPattern |
getLastSelected()
Deprecated.
Use
getSearchPatterns().get(0) |
List<ReplacePattern> |
getReplacePatterns() |
List<SearchPattern> |
getSearchPatterns() |
void |
removePropertyChangeListener(PropertyChangeListener pcl)
Removes a property change listener.
|
void |
setLastSelected(SearchPattern pattern)
Deprecated.
Use only
add(SearchPattern pattern) |
void |
storeFileNamePattern(String pattern)
Store last used file name pattern.
|
@Deprecated public static final String LAST_SELECTED
public static final String ADD_TO_HISTORY
public static final String ADD_TO_REPLACE
public static SearchHistory getDefault()
@Deprecated public SearchPattern getLastSelected()
getSearchPatterns().get(0)
@Deprecated public void setLastSelected(SearchPattern pattern)
add(SearchPattern pattern)
pattern
- last selected patternpublic void addPropertyChangeListener(PropertyChangeListener pcl)
pcl
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener pcl)
pcl
- the listener to removepublic List<SearchPattern> getSearchPatterns()
public List<ReplacePattern> getReplacePatterns()
public void add(SearchPattern pattern)
pattern
- the SearchPattern to addpublic void addReplace(ReplacePattern pattern)
pattern
- the ReplacePattern to addpublic void storeFileNamePattern(String pattern)