Search in sources :

Example 51 with TextFieldWithBrowseButton

use of com.intellij.openapi.ui.TextFieldWithBrowseButton in project intellij-plugins by StepicOrg.

the class StepikPyProjectGenerator method setLocation.

private void setLocation(@NotNull String location) {
    if (keepLocation) {
        return;
    }
    TextFieldWithBrowseButton locationField = getLocationField();
    if (locationField == null) {
        return;
    }
    locationSetting = true;
    locationField.setText(location);
    locationSetting = false;
}
Also used : TextFieldWithBrowseButton(com.intellij.openapi.ui.TextFieldWithBrowseButton)

Aggregations

TextFieldWithBrowseButton (com.intellij.openapi.ui.TextFieldWithBrowseButton)51 FileChooserDescriptor (com.intellij.openapi.fileChooser.FileChooserDescriptor)20 NotNull (org.jetbrains.annotations.NotNull)11 VirtualFile (com.intellij.openapi.vfs.VirtualFile)9 ActionEvent (java.awt.event.ActionEvent)9 ActionListener (java.awt.event.ActionListener)8 JBTextField (com.intellij.ui.components.JBTextField)6 DocumentEvent (javax.swing.event.DocumentEvent)6 File (java.io.File)5 Nullable (org.jetbrains.annotations.Nullable)5 FileTextField (com.intellij.openapi.fileChooser.FileTextField)4 ComboBox (com.intellij.openapi.ui.ComboBox)4 JBLabel (com.intellij.ui.components.JBLabel)4 DocumentListener (javax.swing.event.DocumentListener)4 AndroidTargetHash.getAddonHashString (com.android.sdklib.AndroidTargetHash.getAddonHashString)3 BuildFileKey (com.android.tools.idea.gradle.parser.BuildFileKey)3 JBCheckBox (com.intellij.ui.components.JBCheckBox)3 ValidationResult (com.android.tools.idea.sdk.SdkPaths.ValidationResult)2 Disposable (com.intellij.openapi.Disposable)2 FileChooser.chooseFile (com.intellij.openapi.fileChooser.FileChooser.chooseFile)2