TypeSelectionDialog dialog= new TypeSelectionDialog(getShell(), getWizard().getContainer(), scope, IJavaElementSearchConstants.CONSIDER_TYPES);
TypeSelectionDialog dialog= new TypeSelectionDialog(getShell(), getWizard().getContainer(), IJavaSearchConstants.TYPE, scope);
	private IType chooseEnclosingType() {		IPackageFragmentRoot root= getPackageFragmentRoot();		if (root == null) {			return null;		}				IJavaSearchScope scope= SearchEngine.createJavaSearchScope(new IJavaElement[] { root });					TypeSelectionDialog dialog= new TypeSelectionDialog(getShell(), getWizard().getContainer(), scope, IJavaElementSearchConstants.CONSIDER_TYPES);		dialog.setTitle(NewWizardMessages.getString("TypePage.ChooseEnclosingTypeDialog.title")); //$NON-NLS-1$		dialog.setMessage(NewWizardMessages.getString("TypePage.ChooseEnclosingTypeDialog.description")); //$NON-NLS-1$		if (fCurrEnclosingType != null) {			dialog.setInitialSelections(new Object[] { fCurrEnclosingType });			dialog.setFilter(fCurrEnclosingType.getElementName().substring(0, 1));		}				if (dialog.open() == dialog.OK) {				return (IType) dialog.getFirstResult();		}		return null;	}	