1 11 package org.eclipse.ui.internal.forms; 12 13 import org.eclipse.jface.wizard.Wizard; 14 import org.eclipse.swt.widgets.Composite; 15 import org.eclipse.ui.forms.FormColors; 16 import org.eclipse.ui.forms.widgets.FormToolkit; 17 18 23 public abstract class FormWizard extends Wizard { 24 protected FormToolkit toolkit; 25 26 29 public FormWizard() { 30 } 31 37 public FormWizard(FormColors colors) { 38 toolkit = new FormToolkit(colors); 39 } 40 46 public void createPageControls(Composite pageContainer) { 47 if (toolkit == null) 48 toolkit = new FormToolkit(pageContainer.getDisplay()); 49 super.createPageControls(pageContainer); 50 } 51 54 public void dispose() { 55 super.dispose(); 56 toolkit.dispose(); 57 } 58 } 59 | Popular Tags |