| org.eclipse.ui.views.navigator.ShowInNavigatorAction
ShowInNavigatorAction | public class ShowInNavigatorAction extends SelectionProviderAction (Code) | | An action which shows the current selection in the Navigator view.
For each element in the selection, if it is an 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.
|
Constructor Summary | |
public | ShowInNavigatorAction(IWorkbenchPage page, ISelectionProvider viewer) Create a new instance of this class. |
Method Summary | |
List | getResources(IStructuredSelection selection) Returns the resources in the given selection. | public void | run() Shows the Navigator view and sets its selection to the resources
selected in this action's selection provider. | public void | selectionChanged(IStructuredSelection selection) |
ShowInNavigatorAction | public ShowInNavigatorAction(IWorkbenchPage page, ISelectionProvider viewer)(Code) | | Create a new instance of this class.
Parameters: page - the page Parameters: viewer - the viewer |
getResources | List getResources(IStructuredSelection selection)(Code) | | Returns the resources in the given selection.
a list of IResource |
run | public void run()(Code) | | Shows the Navigator view and sets its selection to the resources
selected in this action's selection provider.
|
selectionChanged | public void selectionChanged(IStructuredSelection selection)(Code) | | |
|
|