How to set the Project Name from previous New Project Generator Wizard Step
Hi,
I am using a custom ModuleBuilder in which I am overriding:
public ModuleWizardStep getCustomOptionsStep(WizardContext context, Disposable parentDisposable) {
}
To specify a custom ModuleWizardStep for my project generators first page. In this steps UI I already know what should be the project name. I was hoping to set it in the WizardContext so that the next step, which is the last step - an instance of
com.intellij.ide.projectWizard.ProjectSettingsStep
which has the Project Name and Project Location fields. However I am not able to figure out how to make sure the project name I want is used in the Project Name field.
As a workaround I copy the project name to system clipboard in my custom ModuleWizardStep, and then ask the user to paste it on the next step - which is instance of ProjectSettingsStep
.
Any help is appreciated.
Regards,
Sandip
Please sign in to leave a comment.
Answering my own question, this helped:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/6318797521938-How-to-change-a-project-name-between-the-steps-of-the-New-Project-Wizard
Sounds awkward. I was hoping to just set it in the WizardContext. Oh well.