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()
PsiTodoSearchHelperfindFilesWithTodoItems in interface PsiTodoSearchHelperpublic TodoItem [] findTodoItems(PsiFile file)
PsiTodoSearchHelperfindTodoItems in interface PsiTodoSearchHelperfile - the file to search for to do items.public TodoItem [] findTodoItems(PsiFile file, int startOffset, int endOffset)
PsiTodoSearchHelperfindTodoItems in interface PsiTodoSearchHelperfile - 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 PsiTodoSearchHelperpublic TodoItem [] findTodoItemsLight(PsiFile file, int startOffset, int endOffset)
findTodoItemsLight in interface PsiTodoSearchHelperpublic int getTodoItemsCount(PsiFile file)
PsiTodoSearchHelpergetTodoItemsCount in interface PsiTodoSearchHelperfile - the file to return the to do count for.public int getTodoItemsCount(PsiFile file, TodoPattern pattern)
PsiTodoSearchHelpergetTodoItemsCount in interface PsiTodoSearchHelperfile - 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.