RSE
Release 1.0

org.eclipse.rse.ui.view
Class SystemViewMenuListener

java.lang.Object
  extended byorg.eclipse.rse.ui.view.SystemViewMenuListener
All Implemented Interfaces:
ArmListener, EventListener, IMenuListener, MenuListener, SWTEventListener

public class SystemViewMenuListener
extends Object
implements IMenuListener, MenuListener, ArmListener

A class that listens for menu show events for the purpose of applying mnemonics to the menu items.


Field Summary
protected  boolean armListeners
           
protected  boolean doOnce
           
protected  Mnemonics m
           
protected  boolean menuListenerAdded
           
protected  boolean menuMnemonicsAdded
           
protected  ISystemMessageLine msgLine
           
 
Constructor Summary
SystemViewMenuListener()
          Default constructor
SystemViewMenuListener(boolean doOnce)
          Constructor for a persistent menu (vs a popup that's fresh each time)
 
Method Summary
 void menuAboutToShow(IMenuManager menu)
          Called when the context menu is about to open.
 void menuHidden(MenuEvent event)
          Menu hidden
 void menuShown(MenuEvent event)
          Menu shown
 void setShowToolTipText(boolean set, ISystemMessageLine msgLine)
          Enable tooltip text for the menu items too?
 void widgetArmed(ArmEvent event)
          Menu item is currently selected by user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menuListenerAdded

protected boolean menuListenerAdded

menuMnemonicsAdded

protected boolean menuMnemonicsAdded

doOnce

protected boolean doOnce

armListeners

protected boolean armListeners

m

protected Mnemonics m

msgLine

protected ISystemMessageLine msgLine
Constructor Detail

SystemViewMenuListener

public SystemViewMenuListener()
Default constructor


SystemViewMenuListener

public SystemViewMenuListener(boolean doOnce)
Constructor for a persistent menu (vs a popup that's fresh each time)

Method Detail

setShowToolTipText

public void setShowToolTipText(boolean set,
                               ISystemMessageLine msgLine)
Enable tooltip text for the menu items too? Requires a message line to display the text on.


menuAboutToShow

public void menuAboutToShow(IMenuManager menu)
Called when the context menu is about to open.

Specified by:
menuAboutToShow in interface IMenuListener

menuHidden

public void menuHidden(MenuEvent event)
Menu hidden

Specified by:
menuHidden in interface MenuListener

menuShown

public void menuShown(MenuEvent event)
Menu shown

Specified by:
menuShown in interface MenuListener

widgetArmed

public void widgetArmed(ArmEvent event)
Menu item is currently selected by user. Try to show tooltip text.

Specified by:
widgetArmed in interface ArmListener

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.