|
Eclipse Platform Release 3.1 |
|||||||||||
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.CompoundContributionItem
org.eclipse.ui.actions.BaseNewWizardMenu
org.eclipse.ui.actions.NewWizardMenu
A NewWizardMenu
augments BaseNewWizardMenu
with IDE-specific
actions: New Project... (always shown) and New Example... (shown only if there are example wizards installed).
Constructor Summary | |
---|---|
NewWizardMenu(IMenuManager innerMgr,
IWorkbenchWindow window,
boolean register)
Deprecated. use NewWizardMenu(IWorkbenchWindow) instead |
|
NewWizardMenu(IWorkbenchWindow window)
Creates a new wizard shortcut menu for the IDE. |
|
NewWizardMenu(IWorkbenchWindow window,
String id)
Creates a new wizard shortcut menu for the IDE. |
Method Summary | |
---|---|
protected void |
addItems(List list)
Adds the items to show to the given list. |
void |
deregisterListeners()
Deprecated. has no effect |
protected IContributionItem[] |
getContributionItems()
|
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.ui.actions.BaseNewWizardMenu |
---|
addShortcuts, dispose, getShowDialogAction, getWindow, registryHasCategory |
Methods inherited from class org.eclipse.ui.actions.CompoundContributionItem |
---|
fill, isDirty, isDynamic, setParent |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
---|
fill, fill, fill, getId, getParent, isGroupMarker, isSeparator, isVisible, saveWidgetState, 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(IWorkbenchWindow window)
window
- the window containing the menupublic NewWizardMenu(IWorkbenchWindow window, String id)
window
- the window containing the menuid
- the identifier for this contribution itempublic 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 windowMethod Detail |
public void deregisterListeners()
This method should only be called if the shortcut menu is created with
register = true
.
protected void addItems(List list)
BaseNewWizardMenu
addItems
in class BaseNewWizardMenu
list
- the list to add items topublic boolean isEnabled()
ContributionItem
IContributionItem
method returns true
. Subclasses may override.
isEnabled
in interface IContributionItem
isEnabled
in class ContributionItem
public void setEnabled(boolean enabledValue)
enabledValue
- if true
the menu is enabled; else
it is disabledprotected IContributionItem[] getContributionItems()
getContributionItems
in class BaseNewWizardMenu
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.