Eclipse Platform
2.0

org.eclipse.ui.views.navigator
Class GotoResourceAction

java.lang.Object
  |
  +--org.eclipse.jface.action.Action
        |
        +--org.eclipse.ui.actions.SelectionProviderAction
              |
              +--org.eclipse.ui.views.navigator.ResourceNavigatorAction
                    |
                    +--org.eclipse.ui.views.navigator.GotoResourceAction
All Implemented Interfaces:
IAction, ISelectionChangedListener

public class GotoResourceAction
extends ResourceNavigatorAction

Implements the go to resource action. Opens a dialog and set the navigator selection with the resource selected by the user.


Field Summary
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
GotoResourceAction(IResourceNavigator navigator, String label)
          Creates a new instance of the class.
 
Method Summary
 void run()
          Collect all resources in the workbench open a dialog asking the user to select a resource and change the selection in the navigator.
 
Methods inherited from class org.eclipse.ui.views.navigator.ResourceNavigatorAction
getNavigator, getShell, getViewer, getWorkbench, getWorkbenchWindow
 
Methods inherited from class org.eclipse.ui.actions.SelectionProviderAction
dispose, getSelection, getSelectionProvider, getStructuredSelection, selectionChanged, selectionChanged, selectionChanged
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, removeAcceleratorText, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GotoResourceAction

public GotoResourceAction(IResourceNavigator navigator,
                          String label)
Creates a new instance of the class.

Since:
2.0
Method Detail

run

public void run()
Collect all resources in the workbench open a dialog asking the user to select a resource and change the selection in the navigator.

Specified by:
run in interface IAction
Overrides:
run in class Action

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.