Hook up WizardDialog or AbstractWizard to ModuleBuilder?

Answered

I see various posts about Project Wizards with advice to look at WizardDialog or AbstractWizard for customisation.

How do you plug in these into the ModuleBuilder plugin examples? These might be easily invoked from an Action but not from an extension point it seems.

thanks

0
5 comments

You can customize steps/wizard via com.intellij.ide.util.projectWizard.ModuleBuilder#createWizardSteps

0

Yann Cebron thanks for responding! Even if i put ModuleWizardSteps in that function, I still see the 'decoration' in the New Project workflow.

Back to basics - what would it take to have a nothing but a single JPanel without the Previous/Next buttons and just Finish straightaway?

Here's an image from my github with the end result if that helps: https://github.com/gurpal2000/forumposts/blob/main/forum-post.png

[The final Project Settings i can populate and invoke a different way hopefully? My steps need to be idempotent hence i feel the framework should still manage some things and not leave a mess.]

thanks

0

AFAIU return Collections.singletonList(ProjectSettingsStep.class) from com.intellij.ide.util.projectWizard.ModuleBuilder#getIgnoredSteps

1

I am coding to 2020.2.4 (202.8194). The IC github branch shows the class is present https://github.com/JetBrains/intellij-community/blob/202.8194/java/idea-ui/src/com/intellij/ide/projectWizard/ProjectSettingsStep.java

Yet i cannot resolve the class against my own code. I can see that gradle has imported com.jetbrains.ideaIC:2020.2.4 but its absent from the class/package explorer. Hmm...

UPDATE: added the below and the the java module in plugin.xml and i can confirm the last step disappears. The platform will create a .idea folder in user's home when Finish is pressed. Next challenge to control the location of that (under an existing folder ;-) )

plugins = ['java']
0

Please sign in to leave a comment.