public class ShowInNavigatorAction extends SelectionProviderAction
IResource
it uses it directly, otherwise if it is an IMarker it uses the marker's resource,
otherwise if it is an IAdaptable, it tries to get the IResource.class adapter.AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT| Constructor and Description |
|---|
ShowInNavigatorAction(IWorkbenchPage page,
ISelectionProvider viewer)
Deprecated.
Create a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Deprecated.
Shows the Navigator view and sets its selection to the resources
selected in this action's selection provider.
|
void |
selectionChanged(IStructuredSelection selection)
Deprecated.
Notifies this action that the given structured selection has changed
in the selection provider.
|
dispose, getSelection, getSelectionProvider, getStructuredSelection, selectionChanged, selectionChangedconvertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic ShowInNavigatorAction(IWorkbenchPage page, ISelectionProvider viewer)
page - the pageviewer - the viewerpublic void run()
run in interface IActionrun in class ActionHow radio buttons are handled,
How check boxes are handledpublic void selectionChanged(IStructuredSelection selection)
SelectionProviderAction
The SelectionProviderAction implementation of this method
does nothing. Subclasses may reimplement to react to this selection change.
selectionChanged in class SelectionProviderActionselection - the new selection
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.