Search in sources :

Example 1 with PhoneGapPluginsView

use of com.github.masahirosuzuka.PhoneGapIntelliJPlugin.settings.ui.plugins.PhoneGapPluginsView in project intellij-plugins by JetBrains.

the class PhoneGapConfigurable method createComponent.

@Nullable
@Override
public JComponent createComponent() {
    if (myWrapper == null) {
        myExecutablePath = PhoneGapUtil.createPhoneGapExecutableTextField(myProject);
        myWorkingDirectory = PhoneGapUtil.createPhoneGapWorkingDirectoryField(myProject);
        myVersion = new JBLabel();
        myUIController = new UIController();
        myExcludePlatformsCheckBox = new JCheckBox(PhoneGapBundle.message("phonegap.conf.exclude.platforms"));
        myRepositoryStore = new RepositoryStore();
        myUIController.reset(mySettings.getState());
        phoneGapPluginsView = new PhoneGapPluginsView(myProject);
        JPanel panel = FormBuilder.createFormBuilder().addLabeledComponent(PhoneGapBundle.message("phonegap.conf.executable.name"), myExecutablePath).addLabeledComponent(PhoneGapBundle.message("phonegap.conf.version.name"), myVersion).addLabeledComponent(PhoneGapBundle.message("phonegap.conf.work.dir.name"), myWorkingDirectory).addComponent(myExcludePlatformsCheckBox).addComponent(phoneGapPluginsView.getPanel()).getPanel();
        myWrapper = new JPanel(new BorderLayout());
        myWrapper.add(panel, BorderLayout.NORTH);
        setupListeners();
        phoneGapPluginsView.setupService(myExecutablePath.getText(), myWorkingDirectory.getText(), myRepositoryStore, getVersionCallback());
    }
    return myWrapper;
}
Also used : PhoneGapPluginsView(com.github.masahirosuzuka.PhoneGapIntelliJPlugin.settings.ui.plugins.PhoneGapPluginsView) JBLabel(com.intellij.ui.components.JBLabel) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

PhoneGapPluginsView (com.github.masahirosuzuka.PhoneGapIntelliJPlugin.settings.ui.plugins.PhoneGapPluginsView)1 JBLabel (com.intellij.ui.components.JBLabel)1 Nullable (org.jetbrains.annotations.Nullable)1