Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ How do I make my wizard appear in the UI?"

 
m
Line 1: Line 1:
To make a wizard appear, you need an implementation of the wizard interface called  
+
To make a wizard appear, you need an implementation of the wizard interface called <tt>IWizardContainer</tt>.
<tt>IWizardContainer</tt>.
+
 
The container is responsible for all the presentation outside the pages themselves,
 
The container is responsible for all the presentation outside the pages themselves,
 
including a title area, button bar, and progress indicator.  You can implement this  
 
including a title area, button bar, and progress indicator.  You can implement this  
Line 6: Line 5:
 
a default wizard container that is a simple modal dialog: <tt>WizardDialog</tt>.
 
a default wizard container that is a simple modal dialog: <tt>WizardDialog</tt>.
 
The following code snippet opens a wizard in a wizard dialog:
 
The following code snippet opens a wizard in a wizard dialog:
 +
 
<pre>
 
<pre>
 
   Shell shell = window.getShell();
 
   Shell shell = window.getShell();
Line 12: Line 12:
 
   int result = dialog.open();
 
   int result = dialog.open();
 
</pre>
 
</pre>
 
 
 
 
 
  
 
== See Also: ==
 
== See Also: ==
 
+
*[[FAQ_What_is_a_wizard%3F]]
 
+
*[[FAQ_How_do_I_add_my_wizard_to_the_New%2C_Import%2C_or_Export_menu_categories%3F]]
[[FAQ_What_is_a_wizard%3F]]
+
 
+
 
+
[[FAQ_How_do_I_add_my_wizard_to_the_New%2C_Import%2C_or_Export_menu_categories%3F]]
+
  
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Revision as of 22:39, 29 May 2006

To make a wizard appear, you need an implementation of the wizard interface called IWizardContainer. The container is responsible for all the presentation outside the pages themselves, including a title area, button bar, and progress indicator. You can implement this interface yourself if you want to embed a wizard into a custom control. JFace provides a default wizard container that is a simple modal dialog: WizardDialog. The following code snippet opens a wizard in a wizard dialog:

   Shell shell = window.getShell();
   AddingWizard wizard = new AddingWizard();
   WizardDialog dialog = new WizardDialog(shell, wizard);
   int result = dialog.open();

See Also:


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top