Bug 13981 Show In Packages view not precise
Build 20020416 0. Set Package explorer preference to show members 1. Select a method in the Outline or Type Hierarchy view 2. Navigate -> Shwo in Packages View ==> CU is selected instead of method
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenActionUtil.java
}
			}
		}		
		return null;
	}
	
	public static IJavaElement getElementToShow(IJavaElement element) throws JavaModelException {
		if (element == null)
			return null;
		switch (element.getElementType()) {
			case IJavaElement.PACKAGE_DECLARATION:
				
				element= element.getAncestor(IJavaElement.PACKAGE_FRAGMENT);
				break;
			default:
				element= getElementToOpen(element);
		}
		return element;
	}
	
	public static IJavaElement getElementToOpen(IJavaElement element) throws JavaModelException {
		if (element == null)
			return null;
		switch (element.getElementType()) {
			case IJavaElement.IMPORT_DECLARATION:
				
				IImportDeclaration declaration= (IImportDeclaration) element;
				if (declaration.isOnDemand()) {
					element= JavaModelUtil.findTypeContainer(element.getJavaProject(), Signature.getQualifier(element.getElementName()));
				} else {