|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
org.eclipse.ui.actions.NewWizardMenu
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. | |
NewWizardMenu(IWorkbenchWindow window)
|
Method Summary | |
void | deregisterListeners()
Deprecated. |
void | fill(Menu menu,
int index)
The default implementation of this IContributionItem method does nothing. |
boolean | isDirty()
The default implementation of this IContributionItem method returns false. |
boolean | isDynamic()
The default implementation of this IContributionItem method returns false. |
boolean | isEnabled()
The default implementation of this IContributionItem method returns true. |
void | setEnabled(boolean enabledValue)
Sets the enabled state of the receiver. |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
dispose, fill, fill, fill, getId, getParent, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, toString, update, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NewWizardMenu(IMenuManager innerMgr, IWorkbenchWindow window, boolean register)
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.
public NewWizardMenu(IWorkbenchWindow window)
Method Detail |
public boolean isEnabled()
public boolean isDynamic()
public boolean isDirty()
public void setEnabled(boolean enabledValue)
public void deregisterListeners()
This method should only be called if the shortcut menu is created with register = true.
public void fill(Menu menu, int index)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.