dialog= JavaUI.createTypeDialog(shell, new ProgressMonitorDialog(shell), SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_TYPES, false, filter);
dialog= JavaUI.createTypeDialog(shell, new ProgressMonitorDialog(shell), SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_CLASSES, false, filter);
	protected SelectionDialog createWrapperClassSelectionDialog() {		Shell shell= getControl().getShell();		SelectionDialog dialog= null;		try {			String filter= getWrapperClassName();			int lastDot= filter.lastIndexOf('.');			if (lastDot > -1 && lastDot != filter.length() - 1)				filter= filter.substring(lastDot + 1);			dialog= JavaUI.createTypeDialog(shell, new ProgressMonitorDialog(shell), SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_TYPES, false, filter);			if (fWrapperClass != null)				dialog.setInitialSelections(new Object[] {fWrapperClass});		} catch (JavaModelException e) {			ExceptionHandler.handle(e, NLSSearchMessages.NLSSearchPage_Error_createTypeDialog_title, NLSSearchMessages.NLSSearchPage_Error_createTypeDialog_message); 			return null;		}		dialog.setTitle(NLSSearchMessages.NLSSearchPage_wrapperClassDialog_title); 		dialog.setInitialSelections(new Object[] { getUnqualifiedType(getWrapperClassName())});		dialog.setMessage(NLSSearchMessages.NLSSearchPage_wrapperClassDialog_message); 		return dialog;	}	