Eclipse Platform
2.0

org.eclipse.jface.action
Interface IMenuCreator


public interface IMenuCreator

Interface for something that creates and disposes of SWT menus.


Method Summary
 void dispose()
          Disposes the menu returned by getMenu.
 Menu getMenu(Control parent)
          Returns the SWT menu, created as a pop up menu parented by the given control.
 Menu getMenu(Menu parent)
          Returns an SWT menu created as a drop down menu parented by the given menu.
 

Method Detail

dispose

public void dispose()
Disposes the menu returned by getMenu. Does nothing if there is no menu.


getMenu

public Menu getMenu(Control parent)
Returns the SWT menu, created as a pop up menu parented by the given control.

Parameters:
parent - the parent control
Returns:
the menu, or null if the menu could not be created

getMenu

public Menu getMenu(Menu parent)
Returns an SWT menu created as a drop down menu parented by the given menu.

Parameters:
parent - the parent menu
Returns:
the menu, or null if the menu could not be created

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.