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

6 comments
Comment actions Permalink

Please clarify what is "wizard window". What do you want to achieve with your task?

0
Comment actions Permalink

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. 

 


 

 

0
Comment actions Permalink

Please explain what your task is about and how it is connected to lifecycle of this wizard.

0
Comment actions Permalink

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

WebProjectTemplate

 

 

But it would be nicer to subscribe to something. 

0
Comment actions Permalink

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

0
Comment actions Permalink

Cool. let;s close this

0

Please sign in to leave a comment.