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

Class 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 Detail

      • COPY

        public static final int COPY
      • CUT

        public static final int CUT
      • PASTE

        public static final int PASTE
      • DELETE

        public static final int DELETE
      • SELECT_ALL

        public static final int SELECT_ALL
    • Constructor Detail

      • RptMenuManager

        public RptMenuManager(TestEditor testEditor)
    • Method Detail

      • registerAddActionGroup

        public void registerAddActionGroup(com.ibm.rational.common.test.editor.framework.kernel.actions.AbstractEditorNewActionGroup group)
        Registers action group for "Add" command.
        Parameters:
        group - AbstractEditorNewActionGroup
        See Also:
        NewModelElementAction
      • registerInsertActionGroup

        public void registerInsertActionGroup(com.ibm.rational.common.test.editor.framework.kernel.actions.AbstractEditorNewActionGroup group)
        Registers action group for "Insert" command.
        Parameters:
        group - EditorNewActionGroup
      • registerDropActionGroup

        public void registerDropActionGroup(com.ibm.rational.common.test.editor.framework.kernel.actions.AbstractEditorNewActionGroup group)
        Registers action group for "Drop" command.
        Parameters:
        group - EditorNewActionGroup
      • setContext

        public void setContext(EditorActionContext c,
                      String actionName)
        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.
      • hasEnabledActions

        public boolean hasEnabledActions(String actionName)
      • getEnabledActionsCount

        public int getEnabledActionsCount(String actionName)
      • 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 -
      • fillDefaultEditActions

        public void fillDefaultEditActions(IMenuManager menu)
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.