Wizard dialog - events
Answered
Hello Group,
Are there any events I can listen to for the wizard window to startup ? and when its closed?
I need to start up background task for the wizard process and I want to make sure that I clean up properly.
Thanks you,
-Frank
Please sign in to leave a comment.
Please clarify what is "wizard window". What do you want to achieve with your task?
I mean, the File -> New Project. (attached) and I wonder if there are any events to listen before this windows is shown and after it closed.
Please explain what your task is about and how it is connected to lifecycle of this wizard.
When wizard is about to be initialized, I need start some node based background process, so I can show inside the JPANEL the javaFX webview page that does something, and I just want to be sure that I clean up properly and showdown the server after I hit cancel or FINISH.
I can probably do it in one of the classes inheriting
But it would be nicer to subscribe to something.
The wizard itself has no listener functionality at all. I assume you want to create your custom WebProjectTemplate implementation, so there's a way that should work:
1) override com.intellij.ide.util.projectWizard.WebProjectTemplate#createModuleBuilder and return com.intellij.openapi.module.WebModuleBuilder
2) override com.intellij.openapi.module.WebModuleBuilder#modifySettingsStep, c/p its code
3) return ModuleWizardStep() and override #disposeUIResources(), in this method shutdown your server or background tasks
Cool. let;s close this