|
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
For cascading menus, we need our own menu subclass so we can intercept the state-setting methods of our frameworks, and foreword those onto the sub-menu actions.
The state-setting methods including setShell, setSelection and setValue.
Field Summary | |
---|---|
static String |
copyright
|
protected boolean |
deferPopulation
|
protected ImageDescriptor |
image
|
protected String |
label
|
protected SystemBaseSubMenuAction |
parentCascadingAction
|
protected ISelection |
selection
|
protected Shell |
shell
|
protected String |
toolTipText
|
protected boolean |
traceSelections
|
protected String |
traceTarget
|
protected Viewer |
viewer
|
Constructor Summary | |
---|---|
SystemSubMenuManager(SystemBaseSubMenuAction parentAction)
Constructor for SystemSubMenuManager |
|
SystemSubMenuManager(SystemBaseSubMenuAction parentAction,
String text)
Constructor for SystemSubMenuManager |
|
SystemSubMenuManager(SystemBaseSubMenuAction parentAction,
String text,
String id)
Constructor for SystemSubMenuManager |
|
SystemSubMenuManager(SystemBaseSubMenuAction parentAction,
String text,
String id,
ImageDescriptor image)
Constructor for SystemSubMenuManager |
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 |
String |
getLabel()
Return the label for this submenu |
SystemBaseSubMenuAction |
getParentCascadingAction()
Return the parent cascading menu action that created this. |
IStructuredSelection |
getSelection()
Get the Selection |
Shell |
getShell()
Get the Shell that hosts this action. |
String |
getToolTipText()
Get the tooltip text when this is used for in a cascading menu |
Viewer |
getViewer()
Get the Viewer that called this action. |
protected void |
issueTraceMessage(String msg)
Issue trace message |
void |
setInputs(Shell shell,
Viewer v,
ISelection selection)
An optimization for performance reasons that allows all inputs to be set in one call. |
void |
setSelection(ISelection selection)
This is called by the framework to set the selection input, just prior to showing the popup menu. |
void |
setShell(Shell shell)
Sets the parent shell for this action. |
void |
setToolTipText(String tip)
Set the tooltip text when this is used for in a cascading menu. |
void |
setTracing(boolean tracing)
Turn on tracing for selections, shell and viewer to watch as it is set |
void |
setTracing(boolean tracing,
String tracingClassTarget)
Turn on tracing for selections, shell and viewer to watch as it is set, scoped to a particular class name (will use indexOf('xxx') to match). |
void |
setTracing(String tracingClassTarget)
Turn on tracing for selections, shell and viewer to watch as it is set, scoped to a particular class name (will use indexOf('xxx') to match). |
void |
setViewer(Viewer v)
Set the Viewer that called this action. |
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
protected String toolTipText
protected ImageDescriptor image
protected Shell shell
protected Viewer viewer
protected boolean deferPopulation
protected boolean traceSelections
protected String traceTarget
protected ISelection selection
protected String label
protected SystemBaseSubMenuAction parentCascadingAction
Constructor Detail |
public SystemSubMenuManager(SystemBaseSubMenuAction parentAction)
public SystemSubMenuManager(SystemBaseSubMenuAction parentAction, String text)
public SystemSubMenuManager(SystemBaseSubMenuAction parentAction, String text, String id)
public SystemSubMenuManager(SystemBaseSubMenuAction parentAction, String text, String id, ImageDescriptor image)
Method Detail |
public SystemBaseSubMenuAction getParentCascadingAction()
public void setToolTipText(String tip)
SystemBaseSubMenuAction
public String getToolTipText()
public String getLabel()
public void setInputs(Shell shell, Viewer v, ISelection selection)
public void setShell(Shell shell)
public void setSelection(ISelection selection)
public void setViewer(Viewer v)
public Viewer getViewer()
public Shell getShell()
public IStructuredSelection getSelection()
public void appendToGroup(String groupName, IAction action)
public void add(IContributionItem item)
protected void cascadeAllInputs()
protected void cascadeAllInputs(ISystemAction action)
protected void cascadeAllInputs(SystemSubMenuManager submenu)
public void setTracing(boolean tracing)
public void setTracing(String tracingClassTarget)
public void setTracing(boolean tracing, String tracingClassTarget)
protected void issueTraceMessage(String msg)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |