Bug 62968 Source folders disappear in Package Explorer if set to Hierarchical Layout
I200405190010 If I set the view to "Hierarchical Layout" in the Package Explorer my "src" folder shows as empty if there are no java files in the root package (i.e. only sub-packages at the first level). Setting to "Flat" and they appear again. Tried a new Java project to recreate, but the problem is not showing on new projects. PB
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
}
    
    private boolean revealElementOrParent(Object element) {
        if (this != null) { 
            if (revealAndVerify(element))
                return true;
            element= getVisibleParent(element);
            if (element != null) {
                if (revealAndVerify(element))
                    return true;
                if (element instanceof IJavaElement) {
                    IResource resource= ((IJavaElement)element).getResource();
                    if (resource != null) {
                        if (revealAndVerify(resource))
                            return true;
                    }
                }
            }
        }
        return false;
    }
    private Object getVisibleParent(Object object) {
    	
    	if (object == null)
    		return null;
    	if (!(object instanceof IJavaElement))
    	    return object;
    	IJavaElement element2= (IJavaElement) object;
    	switch (element2.getElementType()) {
    		case IJavaElement.IMPORT_DECLARATION: