Bug 5755 Open Type dialog is missing types
I can't find any of the classes in some of my packages in the Open Type(Ctrl- Shift-T) dialog. They just aren't there... Class files exist for them. 20011106
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/AllTypesSearchEngine.java
private void doSearchTypes(List typesFound, IJavaSearchScope scope, int style, IProgressMonitor pm) {
		Assert.isTrue((style & IJavaElementSearchConstants.CONSIDER_TYPES) != 0);
				
		try {
			new SearchEngine().searchAllTypeNames(
				fWorkspace,
				null,
				null,
				IJavaSearchConstants.PATTERN_MATCH,
				IJavaSearchConstants.CASE_INSENSITIVE,
				computeKind(style),
				scope,
				new TypeInfoRequestor(typesFound),
				IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH,
				pm);
		} catch(JavaModelException e){
			ExceptionHandler.handle(e,  "Exception", "Unexpected exception. See log for details.");
		}
	}
	
	private static int computeKind(int style) {
		int kind= IJavaSearchConstants.INTERFACE;
		if ((style & IJavaElementSearchConstants.CONSIDER_INTERFACES) != 0 && (style & IJavaElementSearchConstants.CONSIDER_CLASSES) != 0) 
			kind= IJavaSearchConstants.TYPE;
		else if ((style & IJavaElementSearchConstants.CONSIDER_CLASSES) != 0)
			kind= IJavaSearchConstants.CLASS;
		return kind;
	}
}