com.intellij.ide.util.projectWizard.SettingsStep Java Examples
The following examples show how to use
com.intellij.ide.util.projectWizard.SettingsStep.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FlutterCreateAdditionalSettingsFields.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
public void addSettingsFields(@NotNull SettingsStep settingsStep) { settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.description.label"), descriptionField); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.type.label"), projectTypeForm.getComponent()); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.org.label"), orgField); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.android.label"), androidLanguageRadios.getComponent()); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.ios.label"), iosLanguageRadios.getComponent()); // WebStorm has a smaller area for the wizard UI. if (!PlatformUtils.isWebStorm()) { settingsStep.addSettingsComponent(new SettingsHelpForm().getComponent()); } settingsStep.addSettingsComponent(createParams.setInitialValues().getComponent()); }
Example #2
Source File: FlutterCreateAdditionalSettingsFields.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
public void addSettingsFields(@NotNull SettingsStep settingsStep) { settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.description.label"), descriptionField); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.type.label"), projectTypeForm.getComponent()); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.org.label"), orgField); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.android.label"), androidLanguageRadios.getComponent()); settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.ios.label"), iosLanguageRadios.getComponent()); // WebStorm has a smaller area for the wizard UI. if (!PlatformUtils.isWebStorm()) { settingsStep.addSettingsComponent(new SettingsHelpForm().getComponent()); } settingsStep.addSettingsComponent(createParams.setInitialValues().getComponent()); }
Example #3
Source File: QuarkusModuleBuilder.java From intellij-quarkus with Eclipse Public License 2.0 | 5 votes |
@Nullable @Override public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) { ModuleNameLocationSettings moduleNameLocationSettings = settingsStep.getModuleNameLocationSettings(); if (moduleNameLocationSettings != null) { moduleNameLocationSettings.setModuleName(settingsStep.getContext().getUserData(QuarkusConstants.WIZARD_ARTIFACTID_KEY)); } return super.modifySettingsStep(settingsStep); }
Example #4
Source File: InitializrModuleBuilder.java From intellij-spring-assistant with MIT License | 5 votes |
@Nullable public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) { JTextField moduleNameField = settingsStep.getModuleNameField(); if (moduleNameField != null) { moduleNameField.setText(request.getArtifactId()); } return super.modifySettingsStep(settingsStep); }
Example #5
Source File: TalendModuleBuilder.java From component-runtime with Apache License 2.0 | 5 votes |
@Override public ModuleWizardStep modifySettingsStep(final SettingsStep settingsStep) { final String projectJsonString = new String(Base64.getUrlDecoder().decode(request.getProject())); jsonProject = gson.fromJson(projectJsonString, JsonObject.class); try { final Object moduleNameLocationSettings = settingsStep.getClass().getMethod("getModuleNameLocationSettings").invoke(settingsStep); if (moduleNameLocationSettings != null) { moduleNameLocationSettings .getClass() .getMethod("setModuleName", String.class) .invoke(moduleNameLocationSettings, jsonProject.get("artifact").getAsString()); } } catch (final Error | Exception e) { try { final JTextField namedFile = settingsStep.getModuleNameField(); if (namedFile != null) { namedFile.setText(jsonProject.get("artifact").getAsString()); namedFile.setEditable(false); } } catch (final RuntimeException ex) { final IllegalStateException exception = new IllegalStateException(e); exception.addSuppressed(ex); throw exception; } } return super.modifySettingsStep(settingsStep); }
Example #6
Source File: SpringBootModuleBuilder.java From crud-intellij-plugin with Apache License 2.0 | 5 votes |
@Nullable @Override public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) { final JTextField moduleNameField = settingsStep.getModuleNameField(); String artifactId = SelectionContext.getArtifactId(); if (moduleNameField != null && !StringUtil.isEmptyOrSpaces(artifactId)) { moduleNameField.setText(StringUtil.sanitizeJavaIdentifier(artifactId)); } return super.modifyProjectTypeStep(settingsStep); }
Example #7
Source File: FlutterModuleBuilder.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Nullable @Override public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) { final ModuleWizardStep wizard = super.modifySettingsStep(settingsStep); mySettingsFields.addSettingsFields(settingsStep); return wizard; }
Example #8
Source File: FlutterModuleBuilder.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Nullable @Override public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) { final ModuleWizardStep wizard = super.modifySettingsStep(settingsStep); mySettingsFields.addSettingsFields(settingsStep); return wizard; }
Example #9
Source File: SymfonyInstallerGeneratorPeer.java From idea-php-symfony2-plugin with MIT License | 4 votes |
@Override public void buildUI(@NotNull SettingsStep settingsStep) { settingsStep.addSettingsComponent(symfonyInstallerForm.getContentPane()); }
Example #10
Source File: AsposeMavenModuleBuilder.java From Aspose.OCR-for-Java with MIT License | 4 votes |
@Nullable @Override public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) { return StdModuleTypes.JAVA.modifySettingsStep(settingsStep, this); }
Example #11
Source File: GaugeModuleBuilder.java From Intellij-Plugin with Apache License 2.0 | 4 votes |
@Nullable @Override public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) { return ProjectWizardStepFactory.getInstance().createJavaSettingsStep(settingsStep, this, this::isSuitableSdkType); }
Example #12
Source File: ShopwareInstallerGeneratorPeer.java From idea-php-shopware-plugin with MIT License | 4 votes |
@Override public void buildUI(@NotNull SettingsStep settingsStep) { settingsStep.addSettingsComponent(symfonyInstallerForm.getContentPane()); }
Example #13
Source File: VueGeneratorPeer.java From vue-for-idea with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void buildUI(@NotNull SettingsStep settingsStep) { settingsStep.addExpertField(VueBundle.message("vue.sdk.path"),vuePathTextWithBrowse); settingsStep.addExpertField(VueBundle.message("node.path"),nodePathTextWithBrowse); settingsStep.addSettingsComponent(myTemplatesPanel); }
Example #14
Source File: FlutterModuleBuilder.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public ModuleWizardStep modifyProjectTypeStep(@NotNull SettingsStep settingsStep) { // Don't allow super to add an SDK selection field (#2052). return null; }
Example #15
Source File: FlutterSmallIDEGeneratorPeer.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void buildUI(@NotNull SettingsStep settingsStep) { settingsStep.addSettingsField("Flutter SDK", sdkPathComboWithBrowse); settingsFields.addSettingsFields(settingsStep); }
Example #16
Source File: FlutterModuleBuilder.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public ModuleWizardStep modifyProjectTypeStep(@NotNull SettingsStep settingsStep) { // Don't allow super to add an SDK selection field (#2052). return null; }
Example #17
Source File: FlutterSmallIDEGeneratorPeer.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void buildUI(@NotNull SettingsStep settingsStep) { settingsStep.addSettingsField("Flutter SDK", sdkPathComboWithBrowse); settingsFields.addSettingsFields(settingsStep); }