Bug 12053 Allow mutli selection for all browsers
This should clear downstream
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
synchronized (unit) {
				try {
					unit.reconcile(null);
					return unit.getElementAt(offset);
				} catch (JavaModelException x) {
				}
			}
		return null;
	}
	
	protected IType getTypeForCU(ICompilationUnit cu) {
		cu= (ICompilationUnit)getSuitableJavaElement(cu);
		
		
		IType primaryType= JavaModelUtil.findPrimaryType(cu);
		if (primaryType != null)
			return primaryType;
		
		try {
			IType[] types= cu.getTypes();
			if (types.length > 0)
				return types[0];
			else
				return null;
		} catch (JavaModelException ex) {
			return null;
		}
	}	
}