public class FileChooserFactoryImpl extends FileChooserFactory
Constructor and Description |
---|
FileChooserFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
FileChooserDialog |
createFileChooser(FileChooserDescriptor descriptor,
Project project,
java.awt.Component parent) |
FileTextField |
createFileTextField(FileChooserDescriptor descriptor,
boolean showHidden,
Disposable parent) |
static PathChooserDialog |
createNativePathChooserIfEnabled(FileChooserDescriptor descriptor,
Project project,
java.awt.Component parent) |
PathChooserDialog |
createPathChooser(FileChooserDescriptor descriptor,
Project project,
java.awt.Component parent) |
FileSaverDialog |
createSaveFileDialog(FileSaverDescriptor descriptor,
java.awt.Component parent) |
FileSaverDialog |
createSaveFileDialog(FileSaverDescriptor descriptor,
Project project)
Creates Save File dialog.
|
static java.util.Map<java.lang.String,java.lang.String> |
getMacroMap() |
void |
installFileCompletion(javax.swing.JTextField field,
FileChooserDescriptor descriptor,
boolean showHidden,
Disposable parent)
Adds path completion listener to a given text field.
|
createFileTextField, getInstance
public FileChooserDialog createFileChooser(FileChooserDescriptor descriptor, Project project, java.awt.Component parent)
createFileChooser
in class FileChooserFactory
public static PathChooserDialog createNativePathChooserIfEnabled(FileChooserDescriptor descriptor, Project project, java.awt.Component parent)
public PathChooserDialog createPathChooser(FileChooserDescriptor descriptor, Project project, java.awt.Component parent)
createPathChooser
in class FileChooserFactory
public FileTextField createFileTextField(FileChooserDescriptor descriptor, boolean showHidden, Disposable parent)
createFileTextField
in class FileChooserFactory
public void installFileCompletion(javax.swing.JTextField field, FileChooserDescriptor descriptor, boolean showHidden, Disposable parent)
FileChooserFactory
installFileCompletion
in class FileChooserFactory
field
- input field to add completion todescriptor
- chooser optionsshowHidden
- include hidden files into completion variantsparent
- if null then will be registered with PlatformDataKeys.UI_DISPOSABLE
public static java.util.Map<java.lang.String,java.lang.String> getMacroMap()
public FileSaverDialog createSaveFileDialog(FileSaverDescriptor descriptor, Project project)
FileChooserFactory
createSaveFileDialog
in class FileChooserFactory
descriptor
- dialog descriptorproject
- chooser optionspublic FileSaverDialog createSaveFileDialog(FileSaverDescriptor descriptor, java.awt.Component parent)
createSaveFileDialog
in class FileChooserFactory