dialog.setMessage(JavaUIMessages.getString("JavaUI.defaultDialogMessage"));
	public static SelectionDialog createTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter) throws JavaModelException {		int elementKinds= 0;		if (style == IJavaElementSearchConstants.CONSIDER_TYPES) {			elementKinds= IJavaSearchConstants.TYPE;		} else if (style == IJavaElementSearchConstants.CONSIDER_INTERFACES) {			elementKinds= IJavaSearchConstants.INTERFACE;		} else if (style == IJavaElementSearchConstants.CONSIDER_CLASSES) {			elementKinds= IJavaSearchConstants.CLASS;		} else {			Assert.isTrue(false, "illegal style"); //$NON-NLS-1$		}		if (multipleSelection) {			MultiTypeSelectionDialog dialog= new MultiTypeSelectionDialog(parent, context, elementKinds, scope);			dialog.setFilter(filter);			return dialog;					} else {			TypeSelectionDialog dialog= new TypeSelectionDialog(parent, context, elementKinds, scope);			dialog.setFilter(filter);			return dialog;		}	}