TypeInfo ref= (TypeInfo) getWidgetSelection();
TypeInfo ref= (TypeInfo) getWidgetSelection2();
	protected void computeResult() {		TypeInfo ref= (TypeInfo) getWidgetSelection();		if (ref == null)			return;		try {			IType type= ref.resolveType(fScope);						if (type == null) {				// not a class file or compilation unit				String title= JavaUIMessages.getString("TypeSelectionDialog.errorTitle"); //$NON-NLS-1$				String message= JavaUIMessages.getString("TypeSelectionDialog.errorMessage"); //$NON-NLS-1$				MessageDialog.openError(getShell(), title, message);				setResult(null);			} else {				List result= new ArrayList(1);				result.add(type);				setResult(result);			}		} catch (JavaModelException e) {			String title= JavaUIMessages.getString("TypeSelectionDialog.errorTitle"); //$NON-NLS-1$			String message= JavaUIMessages.getString("TypeSelectionDialog.errorMessage"); //$NON-NLS-1$			MessageDialog.openError(getShell(), title, message);			setResult(null);		}	}