Java Code Examples for com.intellij.ide.util.projectWizard.WizardContext#isCreatingNewProject()

The following examples show how to use com.intellij.ide.util.projectWizard.WizardContext#isCreatingNewProject() . 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: InitializrUtil.java    From intellij-spring-assistant with MIT License 5 votes vote down vote up
@Nullable
public static JavaSdkVersion from(WizardContext context, ModuleBuilder builder) {
  Sdk wizardSdk = context.isCreatingNewProject() ?
      context.getProjectJdk() :
      chooseNotNull(builder.getModuleJdk(), context.getProjectJdk());
  return wizardSdk == null ? null : getInstance().getVersion(wizardSdk);
}
 
Example 2
Source File: FlutterModuleBuilder.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Nullable
@Override
public ModuleWizardStep getCustomOptionsStep(final WizardContext context, final Disposable parentDisposable) {
  if (!context.isCreatingNewProject()) {
    myProject = context.getProject();
  }
  myStep = new FlutterModuleWizardStep(context);
  mySettingsFields = new FlutterCreateAdditionalSettingsFields(new FlutterCreateAdditionalSettings(), this::getFlutterSdk, myProject);
  Disposer.register(parentDisposable, myStep);
  return myStep;
}
 
Example 3
Source File: FlutterModuleBuilder.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Nullable
@Override
public ModuleWizardStep getCustomOptionsStep(final WizardContext context, final Disposable parentDisposable) {
  if (!context.isCreatingNewProject()) {
    myProject = context.getProject();
  }
  myStep = new FlutterModuleWizardStep(context);
  mySettingsFields = new FlutterCreateAdditionalSettingsFields(new FlutterCreateAdditionalSettings(), this::getFlutterSdk, myProject);
  Disposer.register(parentDisposable, myStep);
  return myStep;
}