Bug 28469 Error ticks appear on empty default package in packages view hierarchical layout
Steps: 1) remove filters in packages view and make sure the layout is hierarchical. make sure default package is visible 2) interduce an error into a cu in a package fragment at depth 2 or 3 in the tree (it actually doesn't matter). Notice that while the tree hierarchy is decorated with error ticks so is the default package though there is not way it should have an errror. 20021216. JRT.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/TreeHierarchyLayoutProblemsDecorator.java
}
		return super.computeAdornmentFlags(fragment);
	}		
	/* (non-Javadoc)
	 * @see org.eclipse.jdt.ui.ProblemsLabelDecorator#computeAdornmentFlags(java.lang.Object)
	 */
	protected int computeAdornmentFlags(Object element) {
		if (element instanceof IPackageFragment) {
			return computePackageAdornmentFlags((IPackageFragment) element);
		} else if (element instanceof LogicalPackage) {
			IPackageFragment[] fragments= ((LogicalPackage) element).getFragments();
			int res= 0;
			for (int i= 0; i < fragments.length; i++) {
				int flags= computePackageAdornmentFlags(fragments[i]);
				if (flags == JavaElementImageDescriptor.ERROR) {
					return flags;
				} else if (flags != 0) {
					res= flags;
				}
			}
			return res;
		}
		return super.computeAdornmentFlags(element);
	}
	
	public void setIsFlatLayout(boolean state) {
		fIsFlatLayout= state;
	}
}