Bug 15301 'show in packages view' - does not work fo java files not in source folders
20020502 open a java file that is in a resource folder (so it is not an ICompilationUnit - just a file with .java extension) 'show in packages view' is present in the context menu but it does nothing
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInPackageViewAction.java
selectedElement= getSelectedElement(view);
				
				
				if (!element.equals(selectedElement) && element instanceof IMember) {
					IMember member= (IMember)element;
					if (!member.getCompilationUnit().isWorkingCopy()) {
						try {
							element= EditorUtility.getWorkingCopy(member);
							view.selectReveal(new StructuredSelection(element));
							selectedElement= getSelectedElement(view);
						} catch (JavaModelException e) {
						}
					}
				}
			}
			if (!element.equals(selectedElement)) {
				element= getVisibleParent(element);
				if (element != null) {
					view.selectReveal(new StructuredSelection(element));
					selectedElement= getSelectedElement(view);
					if (!element.equals(selectedElement)) {
						MessageDialog.openInformation(getShell(), getDialogTitle(), "Couldn't reveal the selected element in Packages View. May be the element is filtered out.");
					}
				}
			}
			return;
		}
	}
	private Object getSelectedElement(PackageExplorerPart view) {
		return ((IStructuredSelection)view.getSite().getSelectionProvider().getSelection()).getFirstElement();