Search in sources :

Example 6 with ModulesComboBox

use of com.intellij.application.options.ModulesComboBox in project ballerina by ballerina-lang.

the class BallerinaApplicationSettingsEditor method createUIComponents.

private void createUIComponents() {
    myRunKindComboBox = new LabeledComponent<>();
    myRunKindComboBox.setComponent(new JComboBox<>());
    myFileField = new LabeledComponent<>();
    myFileField.setComponent(new TextFieldWithBrowseButton());
    myPackageField = new LabeledComponent<>();
    myPackageField.setComponent(new BallerinaPackageFieldCompletionProvider(() -> myModulesComboBox.getComponent().getSelectedModule()).createEditor(myProject));
    myWorkingDirectoryField = new LabeledComponent<>();
    myWorkingDirectoryField.setComponent(new TextFieldWithBrowseButton());
    myParamsField = new LabeledComponent<>();
    myParamsField.setComponent(new RawCommandLineEditor());
    myBallerinaParamsField = new LabeledComponent<>();
    myBallerinaParamsField.setComponent(new RawCommandLineEditor());
    myModulesComboBox = new LabeledComponent<>();
    myModulesComboBox.setComponent(new ModulesComboBox());
}
Also used : ModulesComboBox(com.intellij.application.options.ModulesComboBox) TextFieldWithBrowseButton(com.intellij.openapi.ui.TextFieldWithBrowseButton) RawCommandLineEditor(com.intellij.ui.RawCommandLineEditor)

Example 7 with ModulesComboBox

use of com.intellij.application.options.ModulesComboBox in project ballerina by ballerina-lang.

the class BallerinaTestSettingsEditor method createUIComponents.

private void createUIComponents() {
    myFileField = new LabeledComponent<>();
    myFileField.setComponent(new TextFieldWithBrowseButton());
    myPackageField = new LabeledComponent<>();
    myPackageField.setComponent(new BallerinaPackageFieldCompletionProvider(() -> myModulesComboBox.getComponent().getSelectedModule()).createEditor(myProject));
    myWorkingDirectoryField = new LabeledComponent<>();
    myWorkingDirectoryField.setComponent(new TextFieldWithBrowseButton());
    myParamsField = new LabeledComponent<>();
    myParamsField.setComponent(new RawCommandLineEditor());
    myModulesComboBox = new LabeledComponent<>();
    myModulesComboBox.setComponent(new ModulesComboBox());
}
Also used : ModulesComboBox(com.intellij.application.options.ModulesComboBox) TextFieldWithBrowseButton(com.intellij.openapi.ui.TextFieldWithBrowseButton) RawCommandLineEditor(com.intellij.ui.RawCommandLineEditor)

Aggregations

ModulesComboBox (com.intellij.application.options.ModulesComboBox)7 TextFieldWithBrowseButton (com.intellij.openapi.ui.TextFieldWithBrowseButton)3 RawCommandLineEditor (com.intellij.ui.RawCommandLineEditor)3 ProjectSelector (com.google.cloud.tools.intellij.project.ProjectSelector)1 AnActionEvent (com.intellij.openapi.actionSystem.AnActionEvent)1 FileChooserDescriptor (com.intellij.openapi.fileChooser.FileChooserDescriptor)1 Module (com.intellij.openapi.module.Module)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 EditorTextField (com.intellij.ui.EditorTextField)1 JBList (com.intellij.ui.components.JBList)1 TableView (com.intellij.ui.table.TableView)1 MessageInfoException (com.theoryinpractice.testng.MessageInfoException)1 TestClassBrowser (com.theoryinpractice.testng.configuration.browser.TestClassBrowser)1