@Deprecated 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, selectionChanged
convertAccelerator, 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, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public ShowInNavigatorAction(IWorkbenchPage page, ISelectionProvider viewer)
page
- the pageviewer
- the viewerpublic void run()
run
in interface IAction
run
in class Action
How radio buttons are handled
,
How check boxes are handled
public 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 SelectionProviderAction
selection
- the new selection
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.