IBM Rational Performance Tester SDK

com.ibm.rational.common.test.editor.framework
Class RptMenuManager

java.lang.Object
  extended by org.eclipse.ui.actions.ActionGroup
      extended by com.ibm.rational.common.test.editor.framework.RptMenuManager
All Implemented Interfaces:
com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITreeSectionActions

public class RptMenuManager
extends ActionGroup
implements com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITreeSectionActions


Field Summary
 
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITreeSectionActions
ACTION_ADD, ACTION_INSERT, ACTION_MOVE_DOWN, ACTION_MOVE_UP, ACTION_REMOVE
 
Constructor Summary
RptMenuManager(TestEditor testEditor)
          Constructor
 
Method Summary
 void adapt(CCombo combo, MenuManager menu)
          Deprecated. This is investigational behavior and is likely to change or be removed.
 void adapt(StyledText stext, MenuManager menu)
          Deprecated. This is investigational behavior and is likely to change or be removed.
 void fillContextMenu(IMenuManager manager, String action_name)
          Called when popup menu with selection is about to be displayed.
 com.ibm.rational.common.test.editor.framework.kernel.actions.CreateBookmarkAction getBookmarkAction()
           
 com.ibm.rational.common.test.editor.framework.kernel.actions.TestRevertAction getTestRevertAction()
           
 void registerAddActionGroup(EditorNewActionGroup group)
          Registres action group for "Add" command.
 void registerInsertActionGroup(EditorNewActionGroup group)
          Registers action group for "Insert" command.
 int setContext(EditorActionContext c, String action_name)
          Sets context.
 void updateActionBars()
          Clients should not call this method.
 
Methods inherited from class org.eclipse.ui.actions.ActionGroup
dispose, fillActionBars, fillContextMenu, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RptMenuManager

public RptMenuManager(TestEditor testEditor)
Constructor

Method Detail

registerAddActionGroup

public void registerAddActionGroup(EditorNewActionGroup group)
Registres action group for "Add" command. Actions are shared; plugin must register its actions just once.

Parameters:
group - EditorNewActionGroup
See Also:
EditorNewActionGroup, NewModelElementAction

registerInsertActionGroup

public void registerInsertActionGroup(EditorNewActionGroup group)
Registers action group for "Insert" command. Actions are shared between editors; plugin must register its action just once.

Parameters:
group - EditorNewActionGroup

setContext

public int setContext(EditorActionContext c,
                      String action_name)
Sets context. This method is called when selection changes in the editor, or another editor becomes active.

Parameters:
c - EditorActionContext
action_name - String - ACTION_ADD or ACTION_INSERT.

fillContextMenu

public void fillContextMenu(IMenuManager manager,
                            String action_name)
Called when popup menu with selection is about to be displayed. Cleints should not call this method.

Parameters:
manager -
action_name -

updateActionBars

public void updateActionBars()
Clients should not call this method.

Overrides:
updateActionBars in class ActionGroup

getBookmarkAction

public com.ibm.rational.common.test.editor.framework.kernel.actions.CreateBookmarkAction getBookmarkAction()
Returns:
CreateBookmarkAction - bookmark for this action

adapt

public void adapt(StyledText stext,
                  MenuManager menu)
Deprecated. This is investigational behavior and is likely to change or be removed.

Parameters:
stext -
editor -
menu -

adapt

public void adapt(CCombo combo,
                  MenuManager menu)
Deprecated. This is investigational behavior and is likely to change or be removed.

Parameters:
stext -
editor -
menu -

getTestRevertAction

public com.ibm.rational.common.test.editor.framework.kernel.actions.TestRevertAction getTestRevertAction()

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.