Bug 26222 [Navigator] Goto resource should work on the package view as well.
Build id: 200211130841 Open a Java Perspective. Enable the Resource Navigation action set. Activate Navigator. The goto type is disabled. Activate the Hierarchy view. Go to resource is enabled (** should be disabled). The goto resource should work only if Navigator is active. And the package view should be able to plug a handler for that action so that Go to resource can be used in the package view also since it shows resources.
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/GoToResourceAction2.java
IResourceNavigator navigator = getNavigator();
	
	if (navigator == null) 
		return;
		
	IContainer cont = (IContainer)navigator.getViewer().getInput();
	ArrayList resources = new ArrayList();
	collectAllResources(cont, resources, navigator.getPatternFilter());
	IResource resourcesArray[] = new IResource[resources.size()];
	resources.toArray(resourcesArray);
	GotoResourceDialog dialog = new GotoResourceDialog(workbenchWindow.getShell(), resourcesArray);
 	dialog.open();
 	Object[] result = dialog.getResult();
 	if (result == null || result.length == 0 || result[0] instanceof IResource == false)
 		return;
	 
	IResource resource = (IResource) result[0];
	navigator.getViewer().setSelection(new StructuredSelection(resource), true);
	
	IWorkbenchPage activePage = workbenchWindow.getActivePage();
	activePage.activate(navigator);
}
/**
 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
 */
public void selectionChanged(IAction action, ISelection selection) {
	
}
}