|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMenuManager
com.ibm.etools.systems.core.ui.actions.SystemSubMenuManager
com.ibm.etools.systems.core.ui.actions.SystemSubMenuManagerForTesting
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.
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 |
public static final String copyright
Constructor Detail |
public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction)
public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text)
public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text, String id)
public SystemSubMenuManagerForTesting(SystemBaseSubMenuAction parentAction, String text, String id, ImageDescriptor image)
Method Detail |
public void setInputs(Shell shell, Viewer v, ISelection selection)
setInputs
in class SystemSubMenuManager
public void appendToGroup(String groupName, IAction action)
appendToGroup
in class SystemSubMenuManager
public void add(IContributionItem item)
add
in class SystemSubMenuManager
protected void cascadeAllInputs()
cascadeAllInputs
in class SystemSubMenuManager
protected void cascadeAllInputs(ISystemAction action)
cascadeAllInputs
in class SystemSubMenuManager
protected void cascadeAllInputs(SystemSubMenuManager submenu)
cascadeAllInputs
in class SystemSubMenuManager
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |