本文整理汇总了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);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:TextFieldWithHistory.java
示例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);
}
开发者ID:bazelbuild,项目名称:intellij,代码行数:10,代码来源:WorkspaceFileTextField.java
示例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;
}
开发者ID:dubreuia,项目名称:intellij-plugin-save-actions,代码行数:11,代码来源:IdeSupportPanel.java
示例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();
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:42,代码来源:ExportToHTMLDialog.java
示例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;
}
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:WebFileChooserFactory.java
示例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));
}
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:FileChooserFactoryImpl.java
注:本文中的com.intellij.openapi.fileChooser.FileTextField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论