public final class SearchControl extends Object
Modifier and Type | Method and Description |
---|---|
static void |
openFindDialog(SearchPattern searchPattern,
SearchScopeOptions searchScopeOptions,
Boolean useIgnoreList,
String scopeId)
Shows dialog for basic search task.
|
static void |
openFindDialog(SearchProvider.Presenter presenter)
Show find dialog with a concrete presenter for one of providers.
|
static void |
openReplaceDialog(SearchPattern searchPattern,
String replaceString,
Boolean preserveCase,
SearchScopeOptions searchScopeOptions,
Boolean useIgnoreList,
String scopeId)
Shows dialog for basic replace task.
|
static void |
openReplaceDialog(SearchProvider.Presenter presenter)
Show replace dialog with a concrete presenter for one of providers.
|
static void |
startBasicSearch(SearchPattern searchPattern,
SearchScopeOptions searchScopeOptions,
String scopeId)
Start basic search for specified parameters.
|
public static void openFindDialog(@NullAllowed SearchPattern searchPattern, @NullAllowed SearchScopeOptions searchScopeOptions, @NullAllowed Boolean useIgnoreList, @NullAllowed String scopeId)
public static void openReplaceDialog(@NullAllowed SearchPattern searchPattern, @NullAllowed String replaceString, @NullAllowed Boolean preserveCase, @NullAllowed SearchScopeOptions searchScopeOptions, @NullAllowed Boolean useIgnoreList, @NullAllowed String scopeId)
public static void openFindDialog(SearchProvider.Presenter presenter)
presenter
- Presenter to use, possibly initialized with proper
values.public static void openReplaceDialog(SearchProvider.Presenter presenter)
presenter
- Presenter to use, possibly initialized with proper
values.public static void startBasicSearch(@NonNull SearchPattern searchPattern, @NonNull SearchScopeOptions searchScopeOptions, @NullAllowed String scopeId) throws IllegalArgumentException
scopeId
- Identifier of search scope (e.g. "main project",
"open projects", "node selection", "browse"). If not specified, the
default one is used.IllegalArgumentException
- if neither non-trivial file name pattern
nor non-empty text search pattern is specified.