public class ProjectActionGroup extends ActionGroup
This class may be instantiated; it is not intended to be subclassed.
Constructor and Description |
---|
ProjectActionGroup(IViewPart part)
Creates a new
ProjectActionGroup . |
ProjectActionGroup(IWorkbenchSite site,
ISelectionProvider selectionProvider)
Creates a new
ProjectActionGroup . |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
fillActionBars(IActionBars actionBars) |
void |
fillContextMenu(IMenuManager menu) |
OpenProjectAction |
getOpenProjectAction()
Returns the open project action contained in this project action group.
|
protected void |
performSelectionChanged(IStructuredSelection structuredSelection) |
getContext, setContext, updateActionBars
public ProjectActionGroup(IViewPart part)
ProjectActionGroup
. The group requires
that the selection provided by the site's selection provider is of type
org.eclipse.jface.viewers.IStructuredSelection
.part
- the view part that owns this action grouppublic ProjectActionGroup(IWorkbenchSite site, ISelectionProvider selectionProvider)
ProjectActionGroup
. 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.selectionProvider
- the selection provider used instead of the
page selection provider.protected void performSelectionChanged(IStructuredSelection structuredSelection)
public void fillActionBars(IActionBars actionBars)
fillActionBars
in class ActionGroup
public void fillContextMenu(IMenuManager menu)
fillContextMenu
in class ActionGroup
public OpenProjectAction getOpenProjectAction()
public void dispose()
dispose
in class ActionGroup
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.