public class NestingTreeStructureProvider extends java.lang.Object implements TreeStructureProvider, DumbAware
NestingTreeStructureProvider
moves some files in the Project View to be shown as children of another peer file. Standard use
case is to improve folder contents presentation when it contains both source file and its compiled output. For example generated
foo.min.js
file will be shown as a child of foo.js
file.com.intellij.projectViewNestingRulesProvider
extensions.Modifier and Type | Class and Description |
---|---|
static class |
NestingTreeStructureProvider.ChildFileInfo |
EP, EP_NAME
Constructor and Description |
---|
NestingTreeStructureProvider() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<NestingTreeStructureProvider.ChildFileInfo> |
getFilesShownAsChildrenInProjectView(Project project,
VirtualFile parentFile) |
java.util.Collection<AbstractTreeNode<?>> |
modify(AbstractTreeNode<?> parent,
java.util.Collection<AbstractTreeNode<?>> children,
ViewSettings settings)
Allows a plugin to modify the list of children displayed for the specified node in the
project view.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData
public java.util.Collection<AbstractTreeNode<?>> modify(AbstractTreeNode<?> parent, java.util.Collection<AbstractTreeNode<?>> children, ViewSettings settings)
TreeStructureProvider
modify
in interface TreeStructureProvider
parent
- the parent node.children
- the list of child nodes according to the default project structure.
Elements of the collection are of type ProjectViewNode
.settings
- the current project view settings.children
if no modifications
are required.public static java.util.Collection<NestingTreeStructureProvider.ChildFileInfo> getFilesShownAsChildrenInProjectView(Project project, VirtualFile parentFile)