Bug 126658 [CommonNavigator] [DND] Complete definition of DND API
bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/NewActionProvider.java
submenu.add(new Separator());
		
		newWizardActionGroup.setContext(getContext());
		newWizardActionGroup.fillContextMenu(submenu);
		submenu.add(new Separator(ICommonMenuConstants.GROUP_ADDITIONS));
		
		if (hasExamples()) {
			submenu.add(new Separator());
			submenu.add(newExampleAction);
		}
		
		submenu.add(new Separator());
		submenu.add(showDlgAction);
		
		menu.insertAfter(ICommonMenuConstants.GROUP_NEW, submenu);
	}
	/**
	 * Return whether or not any examples are in the current install.
	 * 
	 * @return True if there exists a full examples wizard category.
	 */
	private boolean hasExamples() {
		IWizardRegistry newRegistry = PlatformUI.getWorkbench()
				.getNewWizardRegistry();
		IWizardCategory category = newRegistry
				.findCategory(FULL_EXAMPLES_WIZARD_CATEGORY);
		return category != null;
	}
}