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/internal/ui/viewsupport/BaseJavaElementContentProvider.java
try {
			file= (IFile)cu.getUnderlyingResource();
		} catch (JavaModelException e) {
		}
		if (file != null) {
			IWorkingCopyManager wm= JavaPlugin.getDefault().getWorkingCopyManager();
			FileEditorInput ei= new FileEditorInput(file);
			IWorkingCopy wc= wm.getWorkingCopy(ei);
			return wc;
		}
		return null;
	}
	
	private Object[] getResources(IFolder folder) {
		try {
			
			Object[] members= folder.members();
			List nonJavaResources= new ArrayList();
			for (int i= 0; i < members.length; i++) {
				Object o= members[i];
				if (!(o instanceof IFolder && JavaCore.create((IFolder)o) != null)) {
					nonJavaResources.add(o);
				}	
			}
			return nonJavaResources.toArray();
		} catch(CoreException e) {
			return NO_CHILDREN;
		}
	}