org.topbraidcomposer.ui.util
Class MenuUtil

java.lang.Object
  extended by org.topbraidcomposer.ui.util.MenuUtil

public class MenuUtil
extends java.lang.Object


Constructor Summary
MenuUtil()
           
 
Method Summary
static void addMenu(org.eclipse.swt.widgets.Control parent, org.eclipse.jface.action.MenuManager menuManager)
          A workaround to a bug in Eclipse SWT: If we used Control.setMenu() to declare a menu, and then any of the children of the Control are disposed, they also dispose the menu, even though others still use it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuUtil

public MenuUtil()
Method Detail

addMenu

public static void addMenu(org.eclipse.swt.widgets.Control parent,
                           org.eclipse.jface.action.MenuManager menuManager)
A workaround to a bug in Eclipse SWT: If we used Control.setMenu() to declare a menu, and then any of the children of the Control are disposed, they also dispose the menu, even though others still use it.

Parameters:
parent -
menuManager -