Bug 103505 [browsing] Java Browser will not enable viewing Hierarchy for package in >1 folder
1. Consider workspace/proj/src/test/com/a and workspace/proj/src/test/com/a If com.a is viwed in the PackageExplorer the View Hierarchy options works fine. If one goes the the Java Browsing perspective and selects the proj then "a" shows up in the packages, but the View Hierarchy option is unavailable. 2. In general, why can't one open the Hiearchy View on any aggregate: project, folder or package, or group of packages. (If one opens on a Project the results are bizarre-in my case I see mostly interfaces, and certainly not all classes).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenTypeHierarchyAction.java
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.ui.actions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.ui.PlatformUI;
import org.eclipse.jdt.core.IClassFile;