wizard.init(JavaPlugin.getDefault().getWorkbench(), new StructuredSelection(fPackage));
wizard.init(JavaPlugin.getDefault().getWorkbench(), new StructuredSelection(fCompilationUnit));
	public void apply(IDocument document) {		NewElementWizard wizard;		if (fIsClass) {			wizard= new NewClassCreationWizard();		} else {			wizard= new NewInterfaceCreationWizard();		}		wizard.init(JavaPlugin.getDefault().getWorkbench(), new StructuredSelection(fPackage));				Shell shell= JavaPlugin.getActiveWorkbenchShell();		WizardDialog dialog= new WizardDialog(shell, wizard);		PixelConverter converter= new PixelConverter(shell);				dialog.setMinimumPageSize(converter.convertWidthInCharsToPixels(70), converter.convertHeightInCharsToPixels(20));		dialog.create();		dialog.getShell().setText("New");		IWizardPage[] pages= wizard.getPages();		Assert.isTrue(pages.length == 1 && pages[0] instanceof NewTypeWizardPage);				NewTypeWizardPage page= (NewTypeWizardPage) pages[0];		page.setTypeName(fNewTypeName, false);				dialog.open();	}    