public class NavigateActionGroup extends ActionGroup
OpenEditorActionGroup
and OpenViewActionGroup
.
This class may be instantiated; it is not intended to be subclassed.
Constructor and Description |
---|
NavigateActionGroup(IViewPart part)
Creates a new
NavigateActionGroup . |
NavigateActionGroup(IWorkbenchPartSite site,
ISelectionProvider specialSelectionProvider)
Creates a new
NavigateActionGroup . |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
fillActionBars(IActionBars actionBars) |
void |
fillContextMenu(IMenuManager menu) |
IAction |
getOpenAction()
Returns the open action managed by this action group.
|
void |
setContext(ActionContext context) |
void |
updateActionBars() |
getContext
public NavigateActionGroup(IViewPart part)
NavigateActionGroup
. The group requires
that the selection provided by the part's selection provider is of type
org.eclipse.jface.viewers.IStructuredSelection
.part
- the view part that owns this action grouppublic NavigateActionGroup(IWorkbenchPartSite site, ISelectionProvider specialSelectionProvider)
NavigateActionGroup
. The group requires
that the selection provided by the given selection provider is of type
IStructuredSelection
.site
- the site that will own the action group.specialSelectionProvider
- the selection provider used instead of the
sites selection provider.public IAction getOpenAction()
null
if the group
doesn't provide any open actionpublic void dispose()
dispose
in class ActionGroup
public void fillActionBars(IActionBars actionBars)
fillActionBars
in class ActionGroup
public void fillContextMenu(IMenuManager menu)
fillContextMenu
in class ActionGroup
public void setContext(ActionContext context)
setContext
in class ActionGroup
public void updateActionBars()
updateActionBars
in class ActionGroup
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.