public class PsiJavaDirectoryImpl extends PsiDirectoryImpl
Iconable.IconFlags, Iconable.LastComputedIcon
Queryable.Contributor, Queryable.PrintInfo, Queryable.Util
FLAGS_LOCKED, ICON_PLACEHOLDER
EMPTY_ARRAY
ARRAY_FACTORY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
PsiJavaDirectoryImpl(PsiManagerImpl manager,
VirtualFile file) |
Modifier and Type | Method and Description |
---|---|
PsiElement |
add(PsiElement element)
Adds a child to this PSI element.
|
void |
checkAdd(PsiElement element)
Checks if it is possible to add the specified element as a child to this element,
and throws an exception if the add is not possible.
|
void |
checkCreateFile(java.lang.String name)
Checks if it's possible to create a file with the specified name in the directory,
and throws an exception if the creation is not possible.
|
ItemPresentation |
getPresentation() |
accept, addAfter, addBefore, canNavigateToSource, checkCreateSubdirectory, checkDelete, checkSetName, copy, copyFileFrom, createFile, createSubdirectory, delete, equals, executeWithUpdatingAddedFilesDisabled, findElementAt, findFile, findSubdirectory, getChildren, getContainingFile, getElementIcon, getFiles, getLanguage, getManager, getName, getNode, getParent, getParentDirectory, getStartOffsetInParent, getSubdirectories, getText, getTextLength, getTextOffset, getTextRange, getVirtualFile, hashCode, isDirectory, isPhysical, isValid, isWritable, navigate, processChildren, putInfo, replace, setName, textMatches, textMatches, textToCharArray, toString
acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getFirstChild, getLastChild, getNavigationElement, getNextSibling, getOriginalElement, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, notNullChild, processDeclarations, textContains
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
acceptChildren, addRange, addRangeAfter, addRangeBefore, deleteChildRange, findReferenceAt, getContext, getCopyableUserData, getFirstChild, getLastChild, getNavigationElement, getNextSibling, getOriginalElement, getOwnReferences, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getTextRangeInParent, getUseScope, isEquivalentTo, processDeclarations, putCopyableUserData, textContains
getUserData, putUserData
canNavigate
public PsiJavaDirectoryImpl(PsiManagerImpl manager, VirtualFile file)
public void checkCreateFile(java.lang.String name) throws IncorrectOperationException
PsiDirectory
checkCreateFile
in interface PsiDirectory
checkCreateFile
in class PsiDirectoryImpl
name
- the name of the file to check creation possibility.IncorrectOperationException
- if the creation is not possible.public PsiElement add(PsiElement element) throws IncorrectOperationException
PsiElement
add
in interface PsiElement
add
in class PsiDirectoryImpl
element
- the child element to add.element
or its copy).IncorrectOperationException
- if the modification is not supported or not possible for some reason.public void checkAdd(PsiElement element) throws IncorrectOperationException
PsiElement
checkAdd
in interface PsiElement
checkAdd
in class PsiDirectoryImpl
element
- the child element to check the add possibility.IncorrectOperationException
- if the modification is not supported or not possible for some reason.public ItemPresentation getPresentation()
getPresentation
in interface NavigationItem
getPresentation
in class PsiDirectoryImpl