public abstract class AbstractProjectTreeStructure extends ProjectAbstractTreeStructureBase implements ViewSettings
ViewSettings.ImmutablemyProjectDEFAULT| Constructor and Description |
|---|
AbstractProjectTreeStructure(Project project) |
| Modifier and Type | Method and Description |
|---|---|
ActionCallback |
asyncCommit() |
void |
commit() |
protected AbstractTreeNode |
createRoot(Project project,
ViewSettings settings) |
java.lang.Object |
getRootElement() |
boolean |
hasSomethingToCommit() |
boolean |
isAlwaysLeaf(java.lang.Object element) |
getProviders, setProviderscreateDescriptor, getChildElements, getDataFromProviders, getParentElement, isValidasyncCommitDocuments, getLeafState, isToBuildChildrenInBackground, revalidateElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFlattenModules, isFoldersAlwaysOnTop, isShowMembers, isShowModules, isShowURL, isStructureViewisAbbreviatePackageNames, isCompactDirectories, isFlattenPackages, isHideEmptyMiddlePackages, isShowLibraryContentspublic AbstractProjectTreeStructure(Project project)
protected AbstractTreeNode createRoot(Project project, ViewSettings settings)
public final java.lang.Object getRootElement()
getRootElement in class AbstractTreeStructurepublic final void commit()
commit 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 boolean hasSomethingToCommit()
hasSomethingToCommit in class AbstractTreeStructurepublic boolean isAlwaysLeaf(java.lang.Object element)
isAlwaysLeaf in class AbstractTreeStructure