class TypeFoundException extends Error {
class TypeFoundException extends RuntimeException {
	public static boolean isIndexUpToDate() {		class TypeFoundException extends Error {		}		ITypeNameRequestor requestor= new ITypeNameRequestor() {			public void acceptClass(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path) {				throw new TypeFoundException();			}			public void acceptInterface(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path) {				throw new TypeFoundException();			}		};		try {			if (! search(requestor, IJavaSearchConstants.CANCEL_IF_NOT_READY_TO_SEARCH, null))				return false;		} catch (OperationCanceledException e) {			return false;		} catch (TypeFoundException e) {		}		return true;	}