Bug 5099 TypeCache duplicated
TypeCache exists in two packages. Both used!
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeCache.java
private static int fgLastStyle= -1;
	private static List fgTypeList;
	private static boolean fgIsRegistered= false;
	
	
	private TypeCache(){
	}
	public static List findTypes(AllTypesSearchEngine engine, int style, IRunnableContext runnableContext, IJavaSearchScope scope) {
		
		checkIfOkToReuse(style, scope);
		if (fgTypeList == null) {
			fgTypeList= engine.searchTypes(runnableContext, scope, style);
			if (!fgIsRegistered){
				JavaCore.addElementChangedListener(new DeltaListener());
				fgIsRegistered= true;
			}	
		}
		
		
		if (fgTypeList == null)
			return new ArrayList(0); 
		else	
			return fgTypeList;
	}
	private static void checkIfOkToReuse(int style, IJavaSearchScope scope) {