Bug 14112 Show in Navigator doesn't work for non-java resources
1) select logo.gif in JUnit 2) show in navigator -> action
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ShowInNavigatorViewAction.java
((ISetSelectionTarget)view).selectReveal(selection);
			}
		} catch(PartInitException e) {
			ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.getString("ShowInNavigatorView.error.activation_failed")); 
		} catch(JavaModelException e) {
			ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.getString("ShowInNavigatorView.error.conversion_failed")); 
		}
	}
	
	private IJavaElement getElement(IStructuredSelection selection) {
		if (selection.size() != 1)
			return null;
		Object element= selection.getFirstElement();
		if (!(element instanceof IJavaElement))
			return null;
		return (IJavaElement)element;
	}
	
	private IResource getResource(IJavaElement element) throws JavaModelException {
		element= OpenActionUtil.getElementToOpen(element);
		if (element == null)
			return null;
		return element.getCorrespondingResource();
	}
	
	private static String getDialogTitle() {
		return ActionMessages.getString("ShowInNavigatorView.dialog.title"); 
	}	
}