if (window.containsSubmenu(WorkbenchWindow.NEW_WIZARD_SUBMENU)) {
ShortcutMenu wizardMenu = new ShortcutMenu(rootMenu,
ShortcutMenu.ID_WIZARD, WorkbenchMessages.ActionSetDialogInput_wizardCategory);
IWizardCategory wizardCollection = WorkbenchPlugin.getDefault().getNewWizardRegistry().getRootCategory();
IWizardCategory [] wizardCategories = wizardCollection.getCategories();
activeIds = Arrays.asList(perspective.getNewWizardShortcuts());
for (int i = 0; i < wizardCategories.length; i++) {
IWizardCategory element = wizardCategories[i];
if (WorkbenchActivityHelper.filterItem(element)) {
continue;
}
initializeShortCutMenu(wizardMenu, element, activeIds);
}