public abstract class TodoTreeStructure extends AbstractTreeStructureBase implements ToDoSettings
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
myArePackagesShown |
protected TodoTreeBuilder |
myBuilder |
protected AbstractTreeNode |
myRootElement |
protected PsiTodoSearchHelper |
mySearchHelper |
protected ToDoSummary |
mySummaryElement |
protected TodoFilter |
myTodoFilter
Current
TodoFilter. |
myProject| Constructor and Description |
|---|
TodoTreeStructure(Project project) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accept(PsiFile psiFile) |
boolean |
areFlattenPackages() |
ActionCallback |
asyncCommit() |
void |
commit() |
protected abstract AbstractTreeNode |
createRootElement() |
boolean |
getIsFlattenPackages() |
java.util.List<TreeStructureProvider> |
getProviders() |
java.lang.Object |
getRootElement() |
PsiTodoSearchHelper |
getSearchHelper() |
TodoFilter |
getTodoFilter() |
int |
getTodoItemCount(PsiFile psiFile) |
boolean |
hasSomethingToCommit() |
boolean |
isModulesShown() |
boolean |
isPackagesShown() |
void |
setFlattenPackages(boolean state) |
protected void |
validateCache()
Validate whole the cache
|
createDescriptor, getChildElements, getDataFromProviders, getParentElement, isValidasyncCommitDocuments, getLeafState, isAlwaysLeaf, isToBuildChildrenInBackground, revalidateElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIsPackagesShownprotected TodoTreeBuilder myBuilder
protected AbstractTreeNode myRootElement
protected final ToDoSummary mySummaryElement
protected boolean myArePackagesShown
protected final PsiTodoSearchHelper mySearchHelper
protected TodoFilter myTodoFilter
TodoFilter. If no filter is set then this field is null.public TodoTreeStructure(Project project)
protected abstract AbstractTreeNode createRootElement()
public abstract boolean accept(PsiFile psiFile)
protected void validateCache()
public final boolean isPackagesShown()
public final boolean areFlattenPackages()
public final void setFlattenPackages(boolean state)
public final int getTodoItemCount(PsiFile psiFile)
TodoItems located in the file.public final void commit()
commit in class AbstractTreeStructurepublic boolean hasSomethingToCommit()
hasSomethingToCommit in class AbstractTreeStructurepublic ActionCallback asyncCommit()
asyncCommit in class AbstractTreeStructureActionCallback.setDone() when the tree structure is committed.
By default it just calls AbstractTreeStructure.commit() synchronously but it is desirable to override it
to provide asynchronous commit to the tree structure to make it more responsible.
E.g. when you should commit all documents during the AbstractTreeStructure.commit(),
you can use AbstractTreeStructure.asyncCommitDocuments(Project) to do it asynchronously.public final java.lang.Object getRootElement()
getRootElement in class AbstractTreeStructurepublic boolean getIsFlattenPackages()
public PsiTodoSearchHelper getSearchHelper()
public TodoFilter getTodoFilter()
public java.util.List<TreeStructureProvider> getProviders()
getProviders in class AbstractTreeStructureBasepublic boolean isModulesShown()
isModulesShown in interface ToDoSettings