Package org.eclipse.handly.ui.navigator
Class OpenActionProvider
- java.lang.Object
-
- org.eclipse.ui.actions.ActionGroup
-
- org.eclipse.ui.navigator.CommonActionProvider
-
- org.eclipse.handly.ui.navigator.OpenActionProvider
-
- All Implemented Interfaces:
org.eclipse.ui.navigator.IMementoAware
public class OpenActionProvider extends org.eclipse.ui.navigator.CommonActionProviderProvides 'Open' action and 'Open With' submenu.
-
-
Constructor Summary
Constructors Constructor Description OpenActionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.ui.actions.BaseSelectionListenerActioncreateOpenAction()Returns a new open action for this provider.voidfillActionBars(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 idICommonActionConstants.OPEN.voidfillContextMenu(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 namedICommonMenuConstants.GROUP_OPEN.voidinit(org.eclipse.ui.navigator.ICommonActionExtensionSite actionSite)-
Methods inherited from class org.eclipse.ui.navigator.CommonActionProvider
filterAction, getActionSite, restoreState, saveState
-
-
-
-
Method Detail
-
init
public void init(org.eclipse.ui.navigator.ICommonActionExtensionSite actionSite)
After calling the superclass implementation, this implementation
createsa new open action for this provider.- Overrides:
initin classorg.eclipse.ui.navigator.CommonActionProvider
-
fillContextMenu
public 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 namedICommonMenuConstants.GROUP_OPEN. If the currently selected element could be adapted to anIFile, this implementation appends anOpenWithMenufor the file to the group namedICommonMenuConstants.GROUP_OPEN_WITH.- Overrides:
fillContextMenuin classorg.eclipse.ui.actions.ActionGroup
-
fillActionBars
public 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 idICommonActionConstants.OPEN.- Overrides:
fillActionBarsin classorg.eclipse.ui.actions.ActionGroup
-
createOpenAction
protected org.eclipse.ui.actions.BaseSelectionListenerAction createOpenAction()
Returns a new open action for this provider.Default implementation returns a new
OpenAction. Subclasses may override.- Returns:
- the created open action (never
null)
-
-