is it possible to reuse the jface Wizard instance? [message #438726] |
Thu, 01 July 2004 07:35 |
Eclipse User |
|
|
|
Originally posted by: albert_tan.operamail.com
Hi All,
Is it possible to reuse the jface Wizard instance?
Lets say I have to invoke the same wizards many places/ many
times in my application, So is it possible to use back the same instance
of the wizard in other places. Seems when I finish/Cancel my wizard, it's
internally disposing it's pages & container.
see my sample usage below:
OpenProjectWizard wiz = new OpenProjectWizard();
wiz.init(site.getWorkbenchWindow().getWorkbench(), null);
WizardDialog dialog = new WizardDialog(shell, wiz);
dialog.open(); // Invoke First time
dialog.open(); // Invoke Second time
dialog.open(); // Invoke third time
what happened is, when I invoked the second/ third time the wizard
did got invoked but ALL the operations disabled except CANCEL.
is this the normal behaviour?
thanks for any help.
thanks
Albert
|
|
|
|
Powered by
FUDForum. Page generated in 5.03376 seconds