Bug 61005 Quick Type Hierarchy shows disabled label for private method
I20040505-0200 class A { private void method() {} } Show Hierarchy (Ctrl+T) on method() -> was: classes "Object" and "A", both displayed "disabled" (white-and-grey icon, grey text) -> expected: only "Object" is disabled, "A" is colorful (defines the method)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java
protected boolean hasFocusMethod(IType type) {
		if (fFocus == null) {
			return true;
		}
		IMethod[] methods= type.findMethods(fFocus);
		if (methods != null && methods.length > 0) {
			try {
				
				IPackageFragment pack= (IPackageFragment) fFocus.getAncestor(IJavaElement.PACKAGE_FRAGMENT);
				for (int i= 0; i < methods.length; i++) {
					IMethod curr= methods[i];
					if (JavaModelUtil.isVisibleInHierarchy(curr, pack)) {
						return true;
					}
				}
			} catch (JavaModelException e) {
				
				JavaPlugin.log(e);
			}
		}
		return false;			
		
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jdt.internal.ui.text.AbstractInformationControl#setForegroundColor(org.eclipse.swt.graphics.Color)
	 */
	public void setForegroundColor(Color foreground) {
		super.setForegroundColor(foreground);
		fHeaderLabel.setForeground(foreground);
	}