public class OpenActionProvider
extends org.eclipse.ui.navigator.CommonActionProvider
| Constructor and Description |
|---|
OpenActionProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.ui.actions.BaseSelectionListenerAction |
createOpenAction()
Returns a new open action for this provider.
|
void |
fillActionBars(org.eclipse.ui.IActionBars actionBars)
If the 'Open' action is enabled for the current selection,
this implementation sets the global action handler for the action
with the id
ICommonActionConstants.OPEN. |
void |
fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
If the 'Open' action is enabled for the current selection,
this implementation inserts a contribution item for the action
after the item named
ICommonMenuConstants.GROUP_OPEN. |
void |
init(org.eclipse.ui.navigator.ICommonActionExtensionSite actionSite) |
filterAction, getActionSite, restoreState, saveStatepublic void init(org.eclipse.ui.navigator.ICommonActionExtensionSite actionSite)
After calling the superclass implementation, this implementation
creates a new open action for this provider.
init in class org.eclipse.ui.navigator.CommonActionProviderpublic void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
ICommonMenuConstants.GROUP_OPEN.
If the currently selected element could be adapted to an IFile,
this implementation appends an OpenWithMenu for the file
to the group named ICommonMenuConstants.GROUP_OPEN_WITH.fillContextMenu in class org.eclipse.ui.actions.ActionGrouppublic void fillActionBars(org.eclipse.ui.IActionBars actionBars)
ICommonActionConstants.OPEN.fillActionBars in class org.eclipse.ui.actions.ActionGroupprotected org.eclipse.ui.actions.BaseSelectionListenerAction createOpenAction()
Default implementation returns a new OpenAction.
Subclasses may override.
null)Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0