IBM Rational Performance Tester SDK

com.ibm.rational.common.test.editor.framework.kernel.actions
Class EditorNewActionGroup

java.lang.Object
  extended by org.eclipse.ui.actions.ActionGroup
      extended by com.ibm.rational.common.test.editor.framework.kernel.actions.EditorNewActionGroup

public class EditorNewActionGroup
extends ActionGroup


Constructor Summary
EditorNewActionGroup(String id, String editorType)
          Constructor
 
Method Summary
 void addAction(NewModelElementAction action)
          Registers an action.
 void fillContextMenu(IMenuManager menu)
          Build a context menu.
 NewModelElementAction[] getActions()
           
 int getEnabledCount()
           
 String getID()
           
 void setContext(EditorActionContext context)
          Updates action according to the info passed in the EditorActionContext
 
Methods inherited from class org.eclipse.ui.actions.ActionGroup
dispose, fillActionBars, getContext, setContext, updateActionBars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorNewActionGroup

public EditorNewActionGroup(String id,
                            String editorType)
Constructor

Parameters:
id - String
editorType - String
Method Detail

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.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.