public class MainActionGroup extends ResourceNavigatorActionGroup
Modifier and Type | Field and Description |
---|---|
protected AddBookmarkAction |
addBookmarkAction |
protected AddTaskAction |
addTaskAction |
protected CollapseAllAction |
collapseAllAction |
protected ExportResourcesAction |
exportAction |
protected GotoActionGroup |
gotoGroup |
protected ImportResourcesAction |
importAction |
protected OpenActionGroup |
openGroup |
protected PropertyDialogAction |
propertyDialogAction |
protected RefactorActionGroup |
refactorGroup |
protected SortAndFilterActionGroup |
sortAndFilterGroup |
protected ToggleLinkingAction |
toggleLinkingAction |
protected UndoRedoActionGroup |
undoRedoGroup |
protected WorkingSetFilterActionGroup |
workingSetGroup |
protected WorkspaceActionGroup |
workspaceGroup |
navigator
Constructor and Description |
---|
MainActionGroup(IResourceNavigator navigator)
Constructs the main action group.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Extends the superclass implementation to dispose the
actions in this group and its 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 |
handleResourceChanged(IResourceChangeEvent event)
Handles a resource changed event by updating the enablement
if one of the selected projects is opened or closed.
|
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.
|
getImageDescriptor, getNavigator
getContext
protected AddBookmarkAction addBookmarkAction
protected AddTaskAction addTaskAction
protected PropertyDialogAction propertyDialogAction
protected ImportResourcesAction importAction
protected ExportResourcesAction exportAction
protected CollapseAllAction collapseAllAction
protected ToggleLinkingAction toggleLinkingAction
protected GotoActionGroup gotoGroup
protected OpenActionGroup openGroup
protected RefactorActionGroup refactorGroup
protected WorkingSetFilterActionGroup workingSetGroup
protected SortAndFilterActionGroup sortAndFilterGroup
protected UndoRedoActionGroup undoRedoGroup
protected WorkspaceActionGroup workspaceGroup
public MainActionGroup(IResourceNavigator navigator)
navigator
- the navigator viewprotected void handleResourceChanged(IResourceChangeEvent event)
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
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.