Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is it possible to reuse the jface Wizard object?
Is it possible to reuse the jface Wizard object? [message #438931] Mon, 05 July 2004 01:25
Eclipse UserFriend
Originally posted by: albert_tan.operamail.com

Hi All,

Is it possible to reuse the jface Wizard object?

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 so i have to re-create a new
instance.

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
// get values

dialog.open(); // Invoke Second time

// get values

dialog.open(); // Invoke third time
// get values

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
Previous Topic:Update GUI continously ...
Next Topic:ViewPart question
Goto Forum:
  


Current Time: Fri Apr 19 20:40:32 GMT 2024

Powered by FUDForum. Page generated in 0.02966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top