public class ProjectViewDirectoryHelper
extends java.lang.Object
Constructor and Description |
---|
ProjectViewDirectoryHelper(Project project) |
ProjectViewDirectoryHelper(Project project,
DirectoryIndex index)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRepresent(java.lang.Object element,
PsiDirectory directory) |
boolean |
canRepresent(java.lang.Object element,
PsiDirectory directory,
java.lang.Object owner,
ViewSettings settings) |
java.util.Collection<AbstractTreeNode<?>> |
createFileAndDirectoryNodes(java.util.List<? extends VirtualFile> files,
ViewSettings viewSettings) |
java.util.Collection<AbstractTreeNode<?>> |
getDirectoryChildren(PsiDirectory psiDirectory,
ViewSettings settings,
boolean withSubDirectories) |
java.util.Collection<AbstractTreeNode<?>> |
getDirectoryChildren(PsiDirectory psiDirectory,
ViewSettings settings,
boolean withSubDirectories,
PsiFileSystemItemFilter filter) |
static ProjectViewDirectoryHelper |
getInstance(Project project) |
java.lang.String |
getLocationString(PsiDirectory psiDirectory) |
java.lang.String |
getLocationString(PsiDirectory psiDirectory,
boolean includeUrl,
boolean includeRootType) |
java.lang.String |
getNodeName(ViewSettings settings,
java.lang.Object parentValue,
PsiDirectory directory) |
Project |
getProject() |
java.util.List<VirtualFile> |
getTopLevelRoots() |
boolean |
isEmptyMiddleDirectory(PsiDirectory directory,
boolean strictlyEmpty) |
boolean |
isEmptyMiddleDirectory(PsiDirectory directory,
boolean strictlyEmpty,
PsiFileSystemItemFilter filter) |
boolean |
isShowFQName(ViewSettings settings,
java.lang.Object parentValue,
PsiDirectory value) |
boolean |
shouldHideProjectConfigurationFilesDirectory()
Returns
true if the directory containing project configuration files (.idea) should be hidden in Project View. |
boolean |
skipDirectory(PsiDirectory directory) |
boolean |
supportsFlattenPackages() |
boolean |
supportsHideEmptyMiddlePackages() |
protected static final Logger LOG
public ProjectViewDirectoryHelper(Project project)
@Deprecated public ProjectViewDirectoryHelper(Project project, DirectoryIndex index)
ProjectViewDirectoryHelper(Project)
public static ProjectViewDirectoryHelper getInstance(Project project)
public Project getProject()
public java.lang.String getLocationString(PsiDirectory psiDirectory)
public java.lang.String getLocationString(PsiDirectory psiDirectory, boolean includeUrl, boolean includeRootType)
public boolean isShowFQName(ViewSettings settings, java.lang.Object parentValue, PsiDirectory value)
public boolean shouldHideProjectConfigurationFilesDirectory()
true
if the directory containing project configuration files (.idea) should be hidden in Project View.public java.lang.String getNodeName(ViewSettings settings, java.lang.Object parentValue, PsiDirectory directory)
public boolean skipDirectory(PsiDirectory directory)
public boolean isEmptyMiddleDirectory(PsiDirectory directory, boolean strictlyEmpty)
public boolean isEmptyMiddleDirectory(PsiDirectory directory, boolean strictlyEmpty, PsiFileSystemItemFilter filter)
public boolean supportsFlattenPackages()
public boolean supportsHideEmptyMiddlePackages()
public boolean canRepresent(java.lang.Object element, PsiDirectory directory)
public boolean canRepresent(java.lang.Object element, PsiDirectory directory, java.lang.Object owner, ViewSettings settings)
public java.util.Collection<AbstractTreeNode<?>> getDirectoryChildren(PsiDirectory psiDirectory, ViewSettings settings, boolean withSubDirectories)
public java.util.Collection<AbstractTreeNode<?>> getDirectoryChildren(PsiDirectory psiDirectory, ViewSettings settings, boolean withSubDirectories, PsiFileSystemItemFilter filter)
public java.util.List<VirtualFile> getTopLevelRoots()
public java.util.Collection<AbstractTreeNode<?>> createFileAndDirectoryNodes(java.util.List<? extends VirtualFile> files, ViewSettings viewSettings)