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.CommonActionProvider
Provides 'Open' action and 'Open With' submenu.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.ui.actions.BaseSelectionListenerActionReturns 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, saveStateMethods inherited from class org.eclipse.ui.actions.ActionGroup
dispose, getContext, setContext, updateActionBars
-
Constructor Details
-
OpenActionProvider
public OpenActionProvider()
-
-
Method Details
-
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)