Eclipse Platform
2.0

org.eclipse.ui.actions
Class NewWizardMenu

java.lang.Object
  |
  +--org.eclipse.ui.internal.ShortcutMenu
        |
        +--org.eclipse.ui.actions.NewWizardMenu
All Implemented Interfaces:
org.eclipse.ui.internal.IInternalPerspectiveListener, IPageListener, IPerspectiveListener

public class NewWizardMenu
extends org.eclipse.ui.internal.ShortcutMenu

A NewWizardMenu is used to populate a menu manager with New Wizard actions. The visible actions are determined by user preference from the Perspective Customize dialog.


Constructor Summary
NewWizardMenu(IMenuManager innerMgr, IWorkbenchWindow window, boolean register)
          Create a new wizard shortcut menu.
 
Method Summary
protected  void fillMenu()
          Fills the menu.
 void setEnabled(boolean enabledValue)
          Sets the enabled state of the receiver.
 
Methods inherited from class org.eclipse.ui.internal.ShortcutMenu
deregisterListeners, getCurrentPerspective, getMenuManager, getWindow, pageActivated, pageClosed, pageOpened, perspectiveActivated, perspectiveChanged, perspectiveClosed, perspectiveOpened, updateMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewWizardMenu

public NewWizardMenu(IMenuManager innerMgr,
                     IWorkbenchWindow window,
                     boolean register)
Create a new wizard shortcut menu.

If the menu will appear on a semi-permanent basis, for instance within a toolbar or menubar, the value passed for register should be true. If set, the menu will listen to perspective activation and update itself to suit. In this case clients are expected to call deregister when the menu is no longer needed. This will unhook any perspective listeners.

Parameters:
innerMgr - the location for the shortcut menu contents
window - the window containing the menu
register - if true the menu listens to perspective changes in the window
Method Detail

fillMenu

protected void fillMenu()
Description copied from class: org.eclipse.ui.internal.ShortcutMenu
Fills the menu. This method is typically called when the active perspective or page within the target window changes.

Subclasses must implement.

Specified by:
fillMenu in class org.eclipse.ui.internal.ShortcutMenu

setEnabled

public void setEnabled(boolean enabledValue)
Sets the enabled state of the receiver.

Parameters:
enabledValue - if true the menu is enabled; else it is disabled

Eclipse Platform
2.0

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