use of com.intellij.util.textCompletion.TextFieldWithCompletion in project intellij-community by JetBrains.
the class MultilinePopupBuilder method createTextField.
@NotNull
private static EditorTextField createTextField(@NotNull Project project, Collection<String> values, boolean supportsNegativeValues, @NotNull String initialValue) {
TextFieldWithCompletion textField = new TextFieldWithCompletion(project, new MyCompletionProvider(values, supportsNegativeValues), initialValue, false, true, false) {
@Override
protected EditorEx createEditor() {
EditorEx editor = super.createEditor();
SoftWrapsEditorCustomization.ENABLED.customize(editor);
return editor;
}
};
textField.setBorder(new CompoundBorder(JBUI.Borders.empty(2), textField.getBorder()));
return textField;
}
Aggregations