Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.actions
Class SystemSubMenuManagerForTesting

java.lang.Object
  extended byMenuManager
      extended bycom.ibm.etools.systems.core.ui.actions.SystemSubMenuManager
          extended bycom.ibm.etools.systems.core.ui.actions.SystemSubMenuManagerForTesting

public class SystemSubMenuManagerForTesting
extends SystemSubMenuManager

For cascading menus, we need our own menu subclass so we can intercept the state-setting methods our frameworks, and foreword those onto the sub-menu actions.

The state-setting methods including setShell, setSelection and setValue.

We often have trouble tracking down when the shell, selection and viewer is not properly set for cascading actions. For these cases, we can use this override of the SystemSubMenuManager to trace what happens.

See Also:
Serialized Form

Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemSubMenuManager
deferPopulation, image, label, parentCascadingAction, selection, shell, toolTipText, traceSelections, traceTarget, viewer
 
Constructor Summary
SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction)
          Constructor
SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text)
          Constructor
SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text, String id)
          Constructor
SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text, String id, ImageDescriptor image)
          Constructor
 
Method Summary
 void add(IContributionItem item)
          Intercept so we can cascade the selection, viewer and shell down
 void appendToGroup(String groupName, IAction action)
          Intercept so we can cascade the selection, viewer and shell down
protected  void cascadeAllInputs()
          Cascade in one shot all input state inputs to all actions
protected  void cascadeAllInputs(ISystemAction action)
          Cascade in one shot all input state inputs to one action
protected  void cascadeAllInputs(SystemSubMenuManager submenu)
          Cascade in one shot all input state inputs to one submenu
 void setInputs(Shell shell, Viewer v, ISelection selection)
          Override of parent so we can trace it....
 
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemSubMenuManager
getLabel, getParentCascadingAction, getSelection, getShell, getToolTipText, getViewer, issueTraceMessage, setSelection, setShell, setToolTipText, setTracing, setTracing, setTracing, setViewer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemSubMenuManagerForTesting

public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction)
Constructor


SystemSubMenuManagerForTesting

public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction,
                                      String text)
Constructor


SystemSubMenuManagerForTesting

public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction,
                                      String text,
                                      String id)
Constructor


SystemSubMenuManagerForTesting

public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction,
                                      String text,
                                      String id,
                                      ImageDescriptor image)
Constructor

Method Detail

setInputs

public void setInputs(Shell shell,
                      Viewer v,
                      ISelection selection)
Override of parent so we can trace it....

Overrides:
setInputs in class SystemSubMenuManager

appendToGroup

public void appendToGroup(String groupName,
                          IAction action)
Intercept so we can cascade the selection, viewer and shell down

Overrides:
appendToGroup in class SystemSubMenuManager

add

public void add(IContributionItem item)
Intercept so we can cascade the selection, viewer and shell down

Overrides:
add in class SystemSubMenuManager

cascadeAllInputs

protected void cascadeAllInputs()
Cascade in one shot all input state inputs to all actions

Overrides:
cascadeAllInputs in class SystemSubMenuManager

cascadeAllInputs

protected void cascadeAllInputs(ISystemAction action)
Cascade in one shot all input state inputs to one action

Overrides:
cascadeAllInputs in class SystemSubMenuManager

cascadeAllInputs

protected void cascadeAllInputs(SystemSubMenuManager submenu)
Cascade in one shot all input state inputs to one submenu

Overrides:
cascadeAllInputs in class SystemSubMenuManager

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.