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;
}
Aggregations