|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.actions.ActionGroup | +--org.eclipse.ui.views.navigator.ResourceNavigatorActionGroup | +--org.eclipse.ui.views.navigator.MainActionGroup
The main action group for the navigator. This contains a few actions and several subgroups.
Field Summary | |
protected AddBookmarkAction |
addBookmarkAction
|
protected ExportResourcesAction |
exportAction
|
protected GotoActionGroup |
gotoGroup
|
protected ImportResourcesAction |
importAction
|
protected NewWizardAction |
newWizardAction
|
protected OpenActionGroup |
openGroup
|
protected PropertyDialogAction |
propertyDialogAction
|
protected RefactorActionGroup |
refactorGroup
|
protected SortAndFilterActionGroup |
sortAndFilterGroup
|
protected WorkspaceActionGroup |
workspaceGroup
|
Fields inherited from class org.eclipse.ui.views.navigator.ResourceNavigatorActionGroup |
navigator |
Constructor Summary | |
MainActionGroup(IResourceNavigator navigator)
Constructs the main action group. |
Method Summary | |
void |
dispose()
Extends the superclass implementation to dispose the subgroups. |
void |
fillActionBars(IActionBars actionBars)
Adds the actions in this group and its subgroups to the action bars. |
void |
fillContextMenu(IMenuManager menu)
Fills the context menu with the actions contained in this group and its subgroups. |
void |
handleKeyPressed(KeyEvent event)
Handles a key pressed event by invoking the appropriate action, delegating to the subgroups as necessary. |
protected void |
makeActions()
Makes the actions contained directly in this action group. |
protected void |
makeSubGroups()
Makes the sub action groups. |
void |
runDefaultAction(IStructuredSelection selection)
Runs the default action (open file) by delegating the open group. |
void |
setContext(ActionContext context)
Extends the superclass implementation to set the context in the subgroups. |
void |
updateActionBars()
Updates the actions which were added to the action bars, delegating to the subgroups as necessary. |
Methods inherited from class org.eclipse.ui.views.navigator.ResourceNavigatorActionGroup |
getNavigator |
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
getContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AddBookmarkAction addBookmarkAction
protected NewWizardAction newWizardAction
protected PropertyDialogAction propertyDialogAction
protected ImportResourcesAction importAction
protected ExportResourcesAction exportAction
protected GotoActionGroup gotoGroup
protected OpenActionGroup openGroup
protected RefactorActionGroup refactorGroup
protected SortAndFilterActionGroup sortAndFilterGroup
protected WorkspaceActionGroup workspaceGroup
Constructor Detail |
public MainActionGroup(IResourceNavigator navigator)
Method Detail |
protected void makeActions()
makeActions
in class ResourceNavigatorActionGroup
protected void makeSubGroups()
public void setContext(ActionContext context)
setContext
in class ActionGroup
context
- the context to usepublic void fillContextMenu(IMenuManager menu)
fillContextMenu
in class ActionGroup
menu
- the context menupublic void fillActionBars(IActionBars actionBars)
fillActionBars
in class ActionGroup
actionBars
- the part's action barspublic void updateActionBars()
updateActionBars
in class ActionGroup
public void runDefaultAction(IStructuredSelection selection)
runDefaultAction
in class ResourceNavigatorActionGroup
selection
- the current selectionpublic void handleKeyPressed(KeyEvent event)
handleKeyPressed
in class ResourceNavigatorActionGroup
public void dispose()
dispose
in class ActionGroup
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |