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
package org.eclipse.ui.views.navigator;
/*
 * Copyright (c) 2000, 2002 IBM Corp.  All rights reserved. This file is made
 * available under the terms of the Common Public License v1.0 which accompanies
 * this distribution, and is available at http://www.eclipse.org/legal/cpl-v10.
 * html
 */
import java.util.ArrayList;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.ui.*;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.ui.internal.WorkbenchMessages;
import org.eclipse.ui.internal.dialogs.DialogUtil;
/**
 * Implements the go to resource navigate action. 
 * Opens a dialog and sets the navigator selection with the resource selected by
 * the user. The navigator view is made visible if it is not visible already. A
 * navigator view is opened if it is not open.
 * 
 * @since 2.1
 */
public class GoToResourceAction2 extends Action implements IWorkbenchWindowActionDelegate {