EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.workbench.action.navigator
Class AbstractActionProvider

java.lang.Object
  extended by CommonActionProvider
      extended by org.eclipse.egf.core.ui.workbench.action.navigator.AbstractActionProvider
Direct Known Subclasses:
ExplorerActionProvider, InstalledFactoryComponentActionProvider

public abstract class AbstractActionProvider
extends CommonActionProvider

Base class to implement action provider for MDSoFa views based on the common navigator framework.


Constructor Summary
AbstractActionProvider()
          Constructor.
 
Method Summary
protected  IMenuManager createNewSubMenuManager()
          Create new sub Menu manager.
 void fillActionBars(IActionBars actionBars_p)
           
protected  void fillActionsBars(IActionBars actionBars_p, List<IAction> actions_p)
          Fill action bars.
 void fillContextMenu(IMenuManager menu_p)
           
protected  void fillContextMenu(IMenuManager menu_p, List<IAction> actions_p, String groupId_p)
          Fill context menu group
protected  List<IAction> getAdditionActions()
          Return the 'additions' action list.
protected  List<IAction> getDeleteActions()
          Return the 'Delete' action list.
protected  List<IAction> getEditActions()
          Return the 'Edit' action list.
protected  List<IAction> getNewActions()
          Return the 'New' action list.
protected  List<IAction> getOpenActions()
          Return the 'Open' action list.
 void init(ICommonActionExtensionSite site_p)
           
protected abstract  void initActions(Shell shell_p, IWorkbenchPage page_p, ISelectionProvider selectionProvider_p)
          Initialization actions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractActionProvider

public AbstractActionProvider()
Constructor.

Method Detail

init

public void init(ICommonActionExtensionSite site_p)
See Also:
org.eclipse.ui.navigator.CommonActionProvider#init(org.eclipse.ui.navigator.ICommonActionExtensionSite)

initActions

protected abstract void initActions(Shell shell_p,
                                    IWorkbenchPage page_p,
                                    ISelectionProvider selectionProvider_p)
Initialization actions

Parameters:
shell_p -
page_p -
selectionProvider_p -

fillActionBars

public void fillActionBars(IActionBars actionBars_p)
See Also:
org.eclipse.ui.actions.ActionGroup#fillActionBars(org.eclipse.ui.IActionBars)

fillActionsBars

protected void fillActionsBars(IActionBars actionBars_p,
                               List<IAction> actions_p)
Fill action bars.

Parameters:
actionBars_p -
actions_p -

fillContextMenu

public void fillContextMenu(IMenuManager menu_p)
See Also:
org.eclipse.ui.actions.ActionGroup#fillContextMenu(org.eclipse.jface.action.IMenuManager)

createNewSubMenuManager

protected IMenuManager createNewSubMenuManager()
Create new sub Menu manager.

Returns:

fillContextMenu

protected void fillContextMenu(IMenuManager menu_p,
                               List<IAction> actions_p,
                               String groupId_p)
Fill context menu group

Parameters:
menu_p -
actions_p -
groupId_p -

getNewActions

protected List<IAction> getNewActions()
Return the 'New' action list.

Returns:
a not null list.

getOpenActions

protected List<IAction> getOpenActions()
Return the 'Open' action list.

Returns:
a not null list.

getEditActions

protected List<IAction> getEditActions()
Return the 'Edit' action list.

Returns:
a not null list.

getDeleteActions

protected List<IAction> getDeleteActions()
Return the 'Delete' action list.

Returns:
a not null list.

getAdditionActions

protected List<IAction> getAdditionActions()
Return the 'additions' action list.

Returns:
a not null list.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.