Bug 123424 browsing perspective does not show some packages in hierarchical mode
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java
return (IPackageFragment[]) list.toArray(new IPackageFragment[list.size()]);
	}
	private IPackageFragment[] getTopLevelChildrenByElementName(IJavaElement[] elements){
		List topLevelElements= new ArrayList();
		for (int i= 0; i < elements.length; i++) {
			IJavaElement iJavaElement= elements[i];
			
			if (iJavaElement instanceof IPackageFragment && iJavaElement.getElementName().indexOf('.')==-1){
				topLevelElements.add(iJavaElement);
			}
		}
		return (IPackageFragment[]) topLevelElements.toArray(new IPackageFragment[topLevelElements.size()]);
	}
	/*
	 * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(Object)
	 */
	public Object getParent(Object element) {
		try {
			if (element instanceof IPackageFragment) {
				IPackageFragment fragment= (IPackageFragment) element;
				if(!fragment.exists())
					return null;
				Object parent= getHierarchicalParent(fragment);
				if(parent instanceof IPackageFragment) {
					IPackageFragment pkgFragment= (IPackageFragment)parent;
					LogicalPackage logicalPkg= findLogicalPackage(pkgFragment);
					if (logicalPkg != null)
						return logicalPkg;
					else {
						LogicalPackage lp= createLogicalPackage(pkgFragment);