com.ibm.rational.common.test.editor.framework.kernel.actions
Class EditorNewActionGroup
java.lang.Object
org.eclipse.ui.actions.ActionGroup
com.ibm.rational.common.test.editor.framework.kernel.actions.EditorNewActionGroup
public class EditorNewActionGroup
- extends ActionGroup
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorNewActionGroup
public EditorNewActionGroup(String id,
String editorType)
- Constructor
- Parameters:
id
- StringeditorType
- String
addAction
public void addAction(NewModelElementAction action)
- Registers an action.
- Parameters:
action
- NewModelElementAction
fillContextMenu
public void fillContextMenu(IMenuManager menu)
- Build a context menu. Actions are placed between two separators: id + ".start" and id + ".end"
- Overrides:
fillContextMenu
in class ActionGroup
- See Also:
ActionGroup.fillContextMenu(org.eclipse.jface.action.IMenuManager)
setContext
public void setContext(EditorActionContext context)
- Updates action according to the info passed in the
EditorActionContext
- See Also:
ActionGroup.setContext(org.eclipse.ui.actions.ActionContext)
getEnabledCount
public int getEnabledCount()
- Returns:
- int number of enabled action within this group
getActions
public NewModelElementAction[] getActions()
- Returns:
- NewModelElementAction[] Returns all actions in this group.
getID
public String getID()
- Returns:
- id String. Same id is passed in the constructor.
© Copyright IBM Corp. 2012. All rights reserved.