IViewRegistry viewReg = WorkbenchPlugin.getDefault()
.getViewRegistry();
IViewCategory [] categories = viewReg.getCategories();
activeIds = Arrays.asList(perspective.getShowViewShortcuts());
for (int i = 0; i < categories.length; i++) {
IViewCategory category = categories[i];
if (WorkbenchActivityHelper.filterItem(category)) {
continue;
}
ShortcutMenu viewCategory = new ShortcutMenu(viewMenu, category
.getId(), category.getLabel());
IViewDescriptor [] views = category.getViews();
if (views != null) {
for (int j = 0; j < views.length; j++) {
IViewDescriptor view = views[j];
if (view.getId().equals(IIntroConstants.INTRO_VIEW_ID)) {
continue;