public class PsiTodoSearchHelperImpl extends java.lang.Object implements PsiTodoSearchHelper
PsiTodoSearchHelper.SERVICE
Constructor and Description |
---|
PsiTodoSearchHelperImpl(Project project) |
PsiTodoSearchHelperImpl(PsiManagerEx psiManager)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PsiFile [] |
findFilesWithTodoItems()
Returns the list of all files in the project which have to do items.
|
TodoItem [] |
findTodoItems(PsiFile file)
Searches the specified file for to do items.
|
TodoItem [] |
findTodoItems(PsiFile file,
int startOffset,
int endOffset)
Searches the specified range of text in the specified file for to do items.
|
TodoItem [] |
findTodoItemsLight(PsiFile file) |
TodoItem [] |
findTodoItemsLight(PsiFile file,
int startOffset,
int endOffset) |
int |
getTodoItemsCount(PsiFile file)
Returns the number of to do items in the specified file.
|
int |
getTodoItemsCount(PsiFile file,
TodoPattern pattern)
Returns the number of to do items matching the specified pattern in the specified file.
|
boolean |
shouldHighlightInEditor(PsiFile file)
Returns if td items should be highlighted in editor
|
public PsiTodoSearchHelperImpl(Project project)
@Deprecated public PsiTodoSearchHelperImpl(PsiManagerEx psiManager)
PsiTodoSearchHelperImpl(Project)
public PsiFile [] findFilesWithTodoItems()
PsiTodoSearchHelper
findFilesWithTodoItems
in interface PsiTodoSearchHelper
public TodoItem [] findTodoItems(PsiFile file)
PsiTodoSearchHelper
findTodoItems
in interface PsiTodoSearchHelper
file
- the file to search for to do items.public TodoItem [] findTodoItems(PsiFile file, int startOffset, int endOffset)
PsiTodoSearchHelper
findTodoItems
in interface PsiTodoSearchHelper
file
- the file to search for to do items.startOffset
- the start offset of the text range to search to do items in.endOffset
- the end offset of the text range to search to do items in.public TodoItem [] findTodoItemsLight(PsiFile file)
findTodoItemsLight
in interface PsiTodoSearchHelper
public TodoItem [] findTodoItemsLight(PsiFile file, int startOffset, int endOffset)
findTodoItemsLight
in interface PsiTodoSearchHelper
public int getTodoItemsCount(PsiFile file)
PsiTodoSearchHelper
getTodoItemsCount
in interface PsiTodoSearchHelper
file
- the file to return the to do count for.public int getTodoItemsCount(PsiFile file, TodoPattern pattern)
PsiTodoSearchHelper
getTodoItemsCount
in interface PsiTodoSearchHelper
file
- the file to return the to do count for.pattern
- the pattern of to do items to find.public boolean shouldHighlightInEditor(PsiFile file)
file
- the file to return the to do count for.