public class CreateDirectoryOrPackageHandler extends java.lang.Object implements InputValidatorEx
Constructor and Description |
---|
CreateDirectoryOrPackageHandler(Project project,
PsiDirectory directory,
boolean isDirectory,
java.lang.String delimiters) |
CreateDirectoryOrPackageHandler(Project project,
PsiDirectory directory,
boolean isDirectory,
java.lang.String delimiters,
java.awt.Component dialogParent) |
Modifier and Type | Method and Description |
---|---|
boolean |
canClose(java.lang.String subDirName)
This method is invoked just before message dialog is closed with OK code.
|
boolean |
checkInput(java.lang.String inputString)
Checks whether the
inputString is valid. |
protected void |
createDirectories(java.lang.String subDirName) |
static FileType |
findFileTypeBoundToName(java.lang.String name) |
PsiFileSystemItem |
getCreatedElement() |
java.lang.String |
getErrorText(java.lang.String inputString) |
public CreateDirectoryOrPackageHandler(Project project, PsiDirectory directory, boolean isDirectory, java.lang.String delimiters)
public CreateDirectoryOrPackageHandler(Project project, PsiDirectory directory, boolean isDirectory, java.lang.String delimiters, java.awt.Component dialogParent)
public boolean checkInput(java.lang.String inputString)
InputValidator
inputString
is valid. It is invoked each time
input changes.checkInput
in interface InputValidator
inputString
- the input to checkpublic java.lang.String getErrorText(java.lang.String inputString)
getErrorText
in interface InputValidatorEx
public boolean canClose(java.lang.String subDirName)
InputValidator
false
is returned then then the message dialog will not be closed.canClose
in interface InputValidator
subDirName
- the input to checkpublic static FileType findFileTypeBoundToName(java.lang.String name)
protected void createDirectories(java.lang.String subDirName)
public PsiFileSystemItem getCreatedElement()