Assert.isTrue((style | IJavaElementSearchConstants.CONSIDER_TYPES) == IJavaElementSearchConstants.CONSIDER_TYPES);
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"); }
	public static SelectionDialog createTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter) throws JavaModelException {		Assert.isTrue((style | IJavaElementSearchConstants.CONSIDER_TYPES) == IJavaElementSearchConstants.CONSIDER_TYPES);		if (multipleSelection) {			MultiTypeSelectionDialog dialog= new MultiTypeSelectionDialog(parent, context, scope, style);			dialog.setFilter(filter);			return dialog;					} else {			TypeSelectionDialog dialog= new TypeSelectionDialog(parent, context, scope, style);			dialog.setFilter(filter);			return dialog;		}	}