public class FindSettingsImpl extends FindSettings implements PersistentStateComponent<FindSettingsImpl>
Modifier and Type | Field and Description |
---|---|
boolean |
CASE_SENSITIVE_SEARCH |
boolean |
COMMENTS_ONLY |
boolean |
EXCEPT_COMMENTS |
boolean |
EXCEPT_COMMENTS_AND_STRING_LITERALS |
boolean |
EXCEPT_STRING_LITERALS |
java.lang.String |
FILE_MASK |
java.lang.String |
FIND_DIRECTION |
java.lang.String |
FIND_ORIGIN |
java.lang.String |
FIND_SCOPE |
boolean |
LOCAL_CASE_SENSITIVE_SEARCH |
boolean |
LOCAL_REGULAR_EXPRESSIONS |
boolean |
LOCAL_WHOLE_WORDS_ONLY |
boolean |
PRESERVE_CASE_REPLACE |
java.util.List<java.lang.String> |
recentFileMasks |
boolean |
REGULAR_EXPRESSIONS |
boolean |
SEARCH_OVERLOADED_METHODS |
java.lang.String |
SEARCH_SCOPE |
boolean |
SHOW_RESULTS_IN_SEPARATE_VIEW |
boolean |
SKIP_RESULTS_WHEN_ONE_USAGE |
boolean |
STRING_LITERALS_ONLY |
boolean |
WHOLE_WORDS_ONLY |
boolean |
WITH_SUBDIRECTORIES |
Constructor and Description |
---|
FindSettingsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addStringToFind(java.lang.String s) |
void |
addStringToReplace(java.lang.String s) |
java.lang.String |
getCustomScope() |
java.lang.String |
getDefaultScopeName() |
java.lang.String |
getFileMask() |
java.lang.String [] |
getRecentFileMasks()
Returns the list of file masks used by the user in the "File name filter"
group box.
|
java.lang.String [] |
getRecentFindStrings() |
java.lang.String [] |
getRecentReplaceStrings() |
FindSettingsImpl |
getState() |
void |
initModelBySetings(FindModel model) |
boolean |
isCaseSensitive() |
boolean |
isExceptComments() |
boolean |
isExceptCommentsAndLiterals() |
boolean |
isExceptStringLiterals() |
boolean |
isForward() |
boolean |
isFromCursor() |
boolean |
isGlobal() |
boolean |
isInCommentsOnly() |
boolean |
isInStringLiteralsOnly() |
boolean |
isLocalCaseSensitive() |
boolean |
isLocalRegularExpressions() |
boolean |
isLocalWholeWordsOnly() |
boolean |
isPreserveCase() |
boolean |
isRegularExpressions() |
boolean |
isSearchOverloadedMethods() |
boolean |
isShowResultsInSeparateView() |
boolean |
isSkipResultsWithOneUsage() |
boolean |
isWholeWordsOnly() |
void |
loadState(FindSettingsImpl state)
This method is called when new component state is loaded.
|
void |
setCaseSensitive(boolean caseSensitiveSearch) |
void |
setCustomScope(java.lang.String SEARCH_SCOPE) |
void |
setDefaultScopeName(java.lang.String scope) |
void |
setExceptComments(boolean selected) |
void |
setExceptCommentsAndLiterals(boolean selected) |
void |
setExceptStringLiterals(boolean selected) |
void |
setFileMask(java.lang.String _fileMask) |
void |
setForward(boolean findDirectionForward) |
void |
setFromCursor(boolean findFromCursor) |
void |
setGlobal(boolean findGlobalScope) |
void |
setInCommentsOnly(boolean selected) |
void |
setInStringLiteralsOnly(boolean selected) |
void |
setLocalCaseSensitive(boolean caseSensitiveSearch) |
void |
setLocalRegularExpressions(boolean regularExpressions) |
void |
setLocalWholeWordsOnly(boolean wholeWordsOnly) |
void |
setPreserveCase(boolean preserveCase) |
void |
setRegularExpressions(boolean regularExpressions) |
void |
setSearchOverloadedMethods(boolean search) |
void |
setShowResultsInSeparateView(boolean optionValue) |
void |
setSkipResultsWithOneUsage(boolean skip) |
void |
setWholeWordsOnly(boolean wholeWordsOnly) |
void |
setWithSubdirectories(boolean b) |
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public boolean SEARCH_OVERLOADED_METHODS
public boolean SKIP_RESULTS_WHEN_ONE_USAGE
public java.lang.String FIND_DIRECTION
public java.lang.String FIND_ORIGIN
public java.lang.String FIND_SCOPE
public boolean CASE_SENSITIVE_SEARCH
public boolean LOCAL_CASE_SENSITIVE_SEARCH
public boolean PRESERVE_CASE_REPLACE
public boolean WHOLE_WORDS_ONLY
public boolean COMMENTS_ONLY
public boolean STRING_LITERALS_ONLY
public boolean EXCEPT_COMMENTS
public boolean EXCEPT_COMMENTS_AND_STRING_LITERALS
public boolean EXCEPT_STRING_LITERALS
public boolean LOCAL_WHOLE_WORDS_ONLY
public boolean REGULAR_EXPRESSIONS
public boolean LOCAL_REGULAR_EXPRESSIONS
public boolean WITH_SUBDIRECTORIES
public boolean SHOW_RESULTS_IN_SEPARATE_VIEW
public java.lang.String SEARCH_SCOPE
public java.lang.String FILE_MASK
public java.util.List<java.lang.String> recentFileMasks
public boolean isSearchOverloadedMethods()
isSearchOverloadedMethods
in class FindSettings
public void setSearchOverloadedMethods(boolean search)
setSearchOverloadedMethods
in class FindSettings
public void loadState(FindSettingsImpl state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<FindSettingsImpl>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public FindSettingsImpl getState()
getState
in interface PersistentStateComponent<FindSettingsImpl>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public boolean isSkipResultsWithOneUsage()
isSkipResultsWithOneUsage
in class FindSettings
public void setSkipResultsWithOneUsage(boolean skip)
setSkipResultsWithOneUsage
in class FindSettings
public java.lang.String getDefaultScopeName()
getDefaultScopeName
in class FindSettings
public void setDefaultScopeName(java.lang.String scope)
setDefaultScopeName
in class FindSettings
public boolean isForward()
isForward
in class FindSettings
public void setForward(boolean findDirectionForward)
setForward
in class FindSettings
public boolean isFromCursor()
isFromCursor
in class FindSettings
public void setFromCursor(boolean findFromCursor)
setFromCursor
in class FindSettings
public boolean isGlobal()
isGlobal
in class FindSettings
public void setGlobal(boolean findGlobalScope)
setGlobal
in class FindSettings
public boolean isCaseSensitive()
isCaseSensitive
in class FindSettings
public void setCaseSensitive(boolean caseSensitiveSearch)
setCaseSensitive
in class FindSettings
public boolean isLocalCaseSensitive()
isLocalCaseSensitive
in class FindSettings
public boolean isLocalWholeWordsOnly()
isLocalWholeWordsOnly
in class FindSettings
public void setLocalCaseSensitive(boolean caseSensitiveSearch)
setLocalCaseSensitive
in class FindSettings
public void setLocalWholeWordsOnly(boolean wholeWordsOnly)
setLocalWholeWordsOnly
in class FindSettings
public boolean isPreserveCase()
isPreserveCase
in class FindSettings
public void setPreserveCase(boolean preserveCase)
setPreserveCase
in class FindSettings
public boolean isWholeWordsOnly()
isWholeWordsOnly
in class FindSettings
public void setWholeWordsOnly(boolean wholeWordsOnly)
setWholeWordsOnly
in class FindSettings
public boolean isRegularExpressions()
isRegularExpressions
in class FindSettings
public void setRegularExpressions(boolean regularExpressions)
setRegularExpressions
in class FindSettings
public boolean isLocalRegularExpressions()
isLocalRegularExpressions
in class FindSettings
public void setLocalRegularExpressions(boolean regularExpressions)
setLocalRegularExpressions
in class FindSettings
public void setWithSubdirectories(boolean b)
setWithSubdirectories
in class FindSettings
public void initModelBySetings(FindModel model)
initModelBySetings
in class FindSettings
public void addStringToFind(java.lang.String s)
addStringToFind
in class FindSettings
public void addStringToReplace(java.lang.String s)
addStringToReplace
in class FindSettings
public java.lang.String [] getRecentFindStrings()
getRecentFindStrings
in class FindSettings
public java.lang.String [] getRecentReplaceStrings()
getRecentReplaceStrings
in class FindSettings
public java.lang.String [] getRecentFileMasks()
FindSettings
getRecentFileMasks
in class FindSettings
public java.lang.String getFileMask()
getFileMask
in class FindSettings
public void setFileMask(java.lang.String _fileMask)
setFileMask
in class FindSettings
public java.lang.String getCustomScope()
getCustomScope
in class FindSettings
public boolean isInStringLiteralsOnly()
isInStringLiteralsOnly
in class FindSettings
public boolean isInCommentsOnly()
isInCommentsOnly
in class FindSettings
public void setInCommentsOnly(boolean selected)
setInCommentsOnly
in class FindSettings
public void setInStringLiteralsOnly(boolean selected)
setInStringLiteralsOnly
in class FindSettings
public void setCustomScope(java.lang.String SEARCH_SCOPE)
setCustomScope
in class FindSettings
public boolean isExceptComments()
isExceptComments
in class FindSettings
public void setExceptCommentsAndLiterals(boolean selected)
setExceptCommentsAndLiterals
in class FindSettings
public boolean isShowResultsInSeparateView()
isShowResultsInSeparateView
in class FindSettings
public void setShowResultsInSeparateView(boolean optionValue)
setShowResultsInSeparateView
in class FindSettings
public boolean isExceptCommentsAndLiterals()
isExceptCommentsAndLiterals
in class FindSettings
public void setExceptComments(boolean selected)
setExceptComments
in class FindSettings
public boolean isExceptStringLiterals()
isExceptStringLiterals
in class FindSettings
public void setExceptStringLiterals(boolean selected)
setExceptStringLiterals
in class FindSettings