|
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
A BaseNewWizardMenu
is used to populate a menu manager with
New Wizard actions for the current perspective's new wizard shortcuts,
including an Other... action to open the new wizard dialog.
Constructor Summary | |
---|---|
BaseNewWizardMenu(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. |
protected boolean |
addShortcuts(List list)
Adds the new wizard shortcuts for the current perspective to the given list. |
void |
dispose()
The default implementation of this IContributionItem
method does nothing. |
protected IContributionItem[] |
getContributionItems()
|
protected IAction |
getShowDialogAction()
Returns the "Other..." action, used to show the new wizards dialog. |
protected IWorkbenchWindow |
getWindow()
Returns the window in which this menu appears. |
protected boolean |
registryHasCategory(String categoryId)
Returns whether the new wizards registry has a non-empty category with the given identifier. |
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, isEnabled, 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 BaseNewWizardMenu(IWorkbenchWindow window, String id)
window
- the window containing the menuid
- the contribution item identifier, or null
Method Detail |
protected void addItems(List list)
list
- the list to add items toprotected boolean addShortcuts(List list)
list
- the list to add items to
true
if any items were added, false
if none were addedpublic void dispose()
ContributionItem
IContributionItem
method does nothing. Subclasses may override.
dispose
in interface IContributionItem
dispose
in class ContributionItem
protected IContributionItem[] getContributionItems()
getContributionItems
in class CompoundContributionItem
protected IAction getShowDialogAction()
protected IWorkbenchWindow getWindow()
protected boolean registryHasCategory(String categoryId)
categoryId
- the identifier for the category
true
if there is a non-empty category with the
given identifier, false
otherwise
|
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.