Bug 3888 Single click in type hierarchy not working (1GF278R)
Single click in type hierarchy on an already opened file should bring it to front. NOTES: MA (03.08.2001 15:27:31) seems to work now (200), cant reproduce the PR
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java
IJavaElement je= SearchUtil.getJavaElement(element);
			if (je != null)
				return je;
			element= SearchUtil.getResource(element);
		}
		IJavaElement je= null;
		if (element instanceof IAdaptable)
			je= (IJavaElement)((IAdaptable)element).getAdapter(IJavaElement.class);
		
		if (je != null && je.getElementType() == IJavaElement.COMPILATION_UNIT)
			je= WorkingCopyUtil.getWorkingCopyIfExists((ICompilationUnit)je);
		
		return je;
	}
	protected IType getTypeForCU(ICompilationUnit cu) {
		
		if (cu == null || !cu.exists())
			return null;
		
		cu= WorkingCopyUtil.getWorkingCopyIfExists(cu);
		
		
		IType primaryType= cu.findPrimaryType();
		if (primaryType != null)
			return primaryType;
		
		try {
			IType[] types= cu.getTypes();
			if (types.length > 0)
				return types[0];