|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.find.FindManager
public abstract class FindManager
Allows to invoke and control Find, Replace and Find Usages operations.
| Nested Class Summary | |
|---|---|
static interface |
FindManager.PromptResult
Possible return values for the showPromptDialog(FindModel, String) method. |
| Constructor Summary | |
|---|---|
FindManager()
|
|
| Method Summary | |
|---|---|
abstract boolean |
canFindUsages(PsiElement element)
Checks if the Find Usages action is available for the specified element. |
abstract void |
findJoinpointsByPointcut(PsiPointcut pointcut)
Finds the AspectJ joinpoints matching the specified pointcut. |
abstract boolean |
findNextUsageInEditor(FileEditor editor)
Performs a "Find Next" operation after "Find Usages in File" or "Highlight Usages in File". |
abstract boolean |
findPreviousUsageInEditor(FileEditor editor)
Performs a "Find Previous" operation after "Find Usages in File" or "Highlight Usages in File". |
abstract FindResult |
findString(java.lang.CharSequence text,
int offset,
FindModel model)
Searches for the specified substring in the specified character sequence, using the specified find settings. |
abstract void |
findUsages(PsiElement element)
Shows the Find Usages dialog and performs the Find Usages operation for the specified element. |
abstract void |
findUsagesInEditor(PsiElement element,
FileEditor editor)
Performs a "Find Usages in File" operation for the specified element. |
abstract boolean |
findWasPerformed()
Gets the flag indicating whether the "Find Next" and "Find Previous" actions are available to continue a previously started search operation. |
abstract FindModel |
getFindInFileModel()
Returns the settings of the last performed Find in File operation, or the default Find in File settings if no such operation was performed by the user. |
abstract FindModel |
getFindInProjectModel()
Returns the settings of the last performed Find in Project operation, or the default Find in Project settings if no such operation was performed by the user. |
abstract FindModel |
getFindNextModel()
Gets the model containing the search settings to use for "Find Next" and "Find Previous" operations. |
static FindManager |
getInstance(Project project)
Returns the find manager instance for the specified project. |
abstract java.lang.String |
getStringToReplace(java.lang.String foundString,
FindModel model)
Gets the string to replace with, given the specified found string and find/replace settings. |
abstract void |
setFindNextModel(FindModel model)
Sets the model containing the search settings to use for "Find Next" and "Find Previous" operations. |
abstract void |
setFindWasPerformed()
Sets the flag indicating that the "Find Next" and "Find Previous" actions are available to continue a previously started search operation. |
abstract boolean |
showFindDialog(FindModel model)
Shows the Find, Replace or Find Usages dialog initializing it from the specified model and saves the settings entered by the user into the same model. |
abstract int |
showPromptDialog(FindModel model,
java.lang.String title)
Shows a replace prompt dialog for the specfied replace operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FindManager()
| Method Detail |
|---|
public static FindManager getInstance(Project project)
project - the project for which the manager is requested.
public abstract boolean showFindDialog(FindModel model)
model - the model containing the settings of a find or replace operation.
public abstract int showPromptDialog(FindModel model,
java.lang.String title)
model - the model containing the settings of the replace operation.title - the title of the dialog to show.
FindManager.PromptResult
interface.@NotNull public abstract FindModel getFindInFileModel()
@NotNull public abstract FindModel getFindInProjectModel()
@NotNull
public abstract FindResult findString(java.lang.CharSequence text,
int offset,
FindModel model)
text - the text in which the search is performed.offset - the start offset for the search.model - the settings for the search, including the string to find.
public abstract java.lang.String getStringToReplace(java.lang.String foundString,
FindModel model)
foundString - the found string.model - the search and replace settings, including the replace string.
public abstract boolean findWasPerformed()
public abstract void setFindWasPerformed()
public abstract void setFindNextModel(FindModel model)
model - the model to use for the operations.public abstract FindModel getFindNextModel()
public abstract boolean canFindUsages(PsiElement element)
element - the element to check the availability for.
FindUsagesProvider.canFindUsagesFor(com.intellij.psi.PsiElement)public abstract void findUsages(PsiElement element)
element - the element to find the usages for.public abstract void findJoinpointsByPointcut(PsiPointcut pointcut)
pointcut - the pointcut to find.
public abstract void findUsagesInEditor(PsiElement element,
FileEditor editor)
element - the element for which the find is performed.editor - the editor in which the find is performed.public abstract boolean findNextUsageInEditor(FileEditor editor)
editor - the editor in which the find is performed.
public abstract boolean findPreviousUsageInEditor(FileEditor editor)
editor - the editor in which the find is performed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||