Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.perspective
Class MenuRegistry

java.lang.Object
  extended by com.ibm.etools.iseries.perspective.MenuRegistry

public class MenuRegistry
extends Object

Causes any menu registered in this registry to broadcast aboutToShow events to any registered listener. The listener should examine the menu's id to make sure it is one of interest. Menus registered in this way can be dynamically populated by client plugins.


Constructor Summary
MenuRegistry()
           
 
Method Summary
 void addMenuListener(IMenuListener menuListener)
          Adds a menu listener to those that will receive forwarded menuAboutToShow events.
 void addMenuManager(IMenuManager menuManager)
          Adds a menu manager to those whose menuAboutToShow events are forwarded to listeners.
 void menuAboutToShow(IMenuManager manager)
          Receives and forwards menuAboutToShow events to all listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuRegistry

public MenuRegistry()
Method Detail

addMenuManager

public void addMenuManager(IMenuManager menuManager)
Adds a menu manager to those whose menuAboutToShow events are forwarded to listeners.

Parameters:
menuManager -

addMenuListener

public void addMenuListener(IMenuListener menuListener)
Adds a menu listener to those that will receive forwarded menuAboutToShow events.

Parameters:
menuListener -

menuAboutToShow

public void menuAboutToShow(IMenuManager manager)
Receives and forwards menuAboutToShow events to all listeners.


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.