|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.actions.ActionGroup
org.eclipse.jdt.ui.actions.ProjectActionGroup
public class ProjectActionGroup
Adds actions to open and close a project to the global menu bar.
This class may be instantiated; it is not intended to be subclassed.
Constructor Summary | |
---|---|
ProjectActionGroup(IViewPart part)
Creates a new ProjectActionGroup . |
|
ProjectActionGroup(IWorkbenchSite site,
ISelectionProvider selectionProvider)
Creates a new ProjectActionGroup . |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
---|
getContext, setContext, updateActionBars |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.