public class CCPActionGroup extends ActionGroup
This class may be instantiated; it is not intended to be subclassed.
| Constructor and Description |
|---|
CCPActionGroup(IViewPart part)
Creates a new
CCPActionGroup. |
CCPActionGroup(IViewPart part,
boolean includeOnlyCopyActions)
Creates a new
CCPActionGroup. |
CCPActionGroup(IWorkbenchSite site,
ISelectionProvider specialSelectionProvider)
Creates a new
CCPActionGroup. |
CCPActionGroup(Page page)
Creates a new
CCPActionGroup. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
fillActionBars(IActionBars actionBars) |
void |
fillContextMenu(IMenuManager menu) |
IAction |
getDeleteAction()
Returns the delete action managed by this action group.
|
getContext, setContext, updateActionBarspublic CCPActionGroup(IViewPart part, boolean includeOnlyCopyActions)
CCPActionGroup. The group requires that the selection provided by
the view part's selection provider is of type
org.eclipse.jface.viewers.IStructuredSelection.part - the view part that owns this action groupincludeOnlyCopyActions - true if the group only includes the copy actions,
false to include all actionspublic CCPActionGroup(IViewPart part)
CCPActionGroup. The group requires that
the selection provided by the view part's selection provider is of type
org.eclipse.jface.viewers.IStructuredSelection.part - the view part that owns this action grouppublic CCPActionGroup(Page page)
CCPActionGroup. The group requires that
the selection provided by the page's selection provider is of type
org.eclipse.jface.viewers.IStructuredSelection.page - the page that owns this action grouppublic CCPActionGroup(IWorkbenchSite site, ISelectionProvider specialSelectionProvider)
CCPActionGroup. 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 getDeleteAction()
null if the group
doesn't provide any delete actionpublic void fillActionBars(IActionBars actionBars)
fillActionBars in class ActionGrouppublic void fillContextMenu(IMenuManager menu)
fillContextMenu in class ActionGrouppublic void dispose()
dispose in class ActionGroup
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.