View Javadoc
1 package org.argosfields.wizard; 2 3 import org.eclipse.jface.wizard.IWizard; 4 import org.eclipse.jface.wizard.ProgressMonitorPart; 5 import org.eclipse.jface.wizard.WizardDialog; 6 import org.eclipse.swt.widgets.Composite; 7 import org.eclipse.swt.widgets.Control; 8 import org.eclipse.swt.widgets.Shell; 9 10 /*** 11 * DefaultWizardDialog.java 12 * Temporary workaround class to fix sizing problem with SWT-GTK. 13 * 14 * @author Xavier Cho 15 * @version $Revision: 1.2 $ $Date: 2003/12/01 07:38:05 $ 16 */ 17 public class DefaultWizardDialog extends WizardDialog { 18 public DefaultWizardDialog(final Shell shell, final IWizard wizard) { 19 super(shell, wizard); 20 } 21 22 protected Control createDialogArea(final Composite parent) { 23 Composite composite = (Composite) super.createDialogArea(parent); 24 25 if (!getWizard().needsProgressMonitor()) { 26 ((ProgressMonitorPart) getProgressMonitor()).dispose(); 27 } 28 29 return composite; 30 } 31 32 public void create() { 33 super.create(); 34 35 getContents().pack(); 36 } 37 }

This page was automatically generated by Maven