|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.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, getId, getParent, isGroupMarker, isSeparator, isVisible, 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.
innerMgr - the location for the shortcut menu contentswindow - the window containing the menuregister - if true the menu listens to perspective changes in
the windowpublic NewWizardMenu(IWorkbenchWindow window)
| Method Detail |
public boolean isEnabled()
ContributionItemIContributionItem
method returns true. Subclasses may override.
isEnabled in interface IContributionItemisEnabled in class ContributionItemtrue if this item is enabledpublic boolean isDynamic()
ContributionItemIContributionItem
method returns false. Subclasses may override.
isDynamic in interface IContributionItemisDynamic in class ContributionItemtrue if this item is dynamic, and
false for normal itemspublic boolean isDirty()
ContributionItemIContributionItem
method returns false. Subclasses may override.
isDirty in interface IContributionItemisDirty in class ContributionItemtrue if this item is dirtypublic void setEnabled(boolean enabledValue)
enabledValue - if true the menu is enabled; else
it is disabledpublic void deregisterListeners()
This method should only be called if the shortcut menu is created
with register = true.
public void fill(Menu menu,
int index)
ContributionItemIContributionItem
method does nothing. Subclasses may override.
fill in interface IContributionItemfill in class ContributionItemmenu - the parent menuindex - the index where the controls are inserted,
or -1 to insert at the end
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||