Search in sources :

Example 1 with IWizardRegistry

use of org.eclipse.ui.wizards.IWizardRegistry in project translationstudio8 by heartsome.

the class NewActionProvider method hasExamples.

/**
	 * 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;
}
Also used : IWizardRegistry(org.eclipse.ui.wizards.IWizardRegistry) IWizardCategory(org.eclipse.ui.wizards.IWizardCategory)

Aggregations

IWizardCategory (org.eclipse.ui.wizards.IWizardCategory)1 IWizardRegistry (org.eclipse.ui.wizards.IWizardRegistry)1