本文整理汇总了Java中com.intellij.openapi.fileChooser.FileTextField类的典型用法代码示例。如果您正苦于以下问题:Java FileTextField类的具体用法?Java FileTextField怎么用?Java FileTextField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FileTextField类属于com.intellij.openapi.fileChooser包,在下文中一共展示了FileTextField类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setPopupVisible
import com.intellij.openapi.fileChooser.FileTextField; //导入依赖的package包/类
@Override
public void setPopupVisible(boolean v) {
if (v) {
final FileTextField fileTextField = (FileTextField)getTextEditor().getClientProperty(FileTextField.KEY);
// don't allow showing combobox popup when file completion popup is displayed (IDEA-68711)
if (fileTextField != null && fileTextField.isPopupDisplayed()) {
return;
}
}
super.setPopupVisible(v);
}
示例2: create
import com.intellij.openapi.fileChooser.FileTextField; //导入依赖的package包/类
public static FileTextField create(
WorkspacePathResolver pathResolver,
FileChooserDescriptor descriptor,
int columns,
Disposable parent) {
JTextField textField = new WorkspacePathTextField(pathResolver, columns);
return new WorkspaceFileTextField(
pathResolver, textField, new FileChooserFilter(descriptor, /* showHidden */ true), parent);
}
示例3: getPath
import com.intellij.openapi.fileChooser.FileTextField; //导入依赖的package包/类
@NotNull
private TextFieldWithBrowseButton getPath(String configurationPath) {
FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFileDescriptor("epf");
FileTextField field = FileChooserFactory.getInstance().createFileTextField(descriptor, null);
field.getField().setEnabled(false);
field.getField().setText(configurationPath);
TextFieldWithBrowseButton path = new TextFieldWithBrowseButton(field.getField());
path.addBrowseFolderListener(null, null, null, descriptor, TEXT_FIELD_WHOLE_TEXT);
return path;
}
示例4: createNorthPanel
import com.intellij.openapi.fileChooser.FileTextField; //导入依赖的package包/类
@Override
protected JComponent createNorthPanel() {
OptionGroup optionGroup = new OptionGroup();
myRbCurrentFile = new JRadioButton(CodeEditorBundle.message("export.to.html.file.name.radio", (myFileName != null ? myFileName : "")));
optionGroup.add(myRbCurrentFile);
myRbSelectedText = new JRadioButton(CodeEditorBundle.message("export.to.html.selected.text.radio"));
optionGroup.add(myRbSelectedText);
myRbCurrentPackage = new JRadioButton(
CodeEditorBundle.message("export.to.html.all.files.in.directory.radio", (myDirectoryName != null ? myDirectoryName : "")));
optionGroup.add(myRbCurrentPackage);
myCbIncludeSubpackages = new JCheckBox(CodeEditorBundle.message("export.to.html.include.subdirectories.checkbox"));
optionGroup.add(myCbIncludeSubpackages, true);
FileTextField field = FileChooserFactory.getInstance().createFileTextField(FileChooserDescriptorFactory.createSingleFolderDescriptor(), myDisposable);
myTargetDirectoryField = new TextFieldWithBrowseButton(field.getField());
LabeledComponent<TextFieldWithBrowseButton> labeledComponent = assignLabel(myTargetDirectoryField, myProject);
optionGroup.add(labeledComponent);
ButtonGroup buttonGroup = new ButtonGroup();
buttonGroup.add(myRbCurrentFile);
buttonGroup.add(myRbSelectedText);
buttonGroup.add(myRbCurrentPackage);
ActionListener actionListener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
myCbIncludeSubpackages.setEnabled(myRbCurrentPackage.isSelected());
}
};
myRbCurrentFile.addActionListener(actionListener);
myRbSelectedText.addActionListener(actionListener);
myRbCurrentPackage.addActionListener(actionListener);
return optionGroup.createPanel();
}
示例5: createFileTextField
import com.intellij.openapi.fileChooser.FileTextField; //导入依赖的package包/类
@Nonnull
@Override
public FileTextField createFileTextField(@Nonnull FileChooserDescriptor descriptor, boolean showHidden, @javax.annotation.Nullable Disposable parent) {
return null;
}
示例6: createFileTextField
import com.intellij.openapi.fileChooser.FileTextField; //导入依赖的package包/类
@Nonnull
@Override
public FileTextField createFileTextField(@Nonnull final FileChooserDescriptor descriptor, boolean showHidden, @Nullable Disposable parent) {
return new FileTextFieldImpl.Vfs(new JTextField(), getMacroMap(), parent, new LocalFsFinder.FileChooserFilter(descriptor, showHidden));
}