use of org.eclipse.ui.internal.dialogs.WorkbenchWizardElement in project egit by eclipse.
the class GitRepositoriesViewTest method removeSmartImportWizardToForceGitImportWizardUsage.
private static void removeSmartImportWizardToForceGitImportWizardUsage() throws Exception {
final String smartImportWizardId = "org.eclipse.e4.ui.importer.wizard";
AbstractExtensionWizardRegistry wizardRegistry = (AbstractExtensionWizardRegistry) PlatformUI.getWorkbench().getImportWizardRegistry();
IWizardCategory[] categories = PlatformUI.getWorkbench().getImportWizardRegistry().getRootCategory().getCategories();
for (IWizardDescriptor wizard : getAllWizards(categories)) {
if (wizard.getId().equals(smartImportWizardId)) {
WorkbenchWizardElement wizardElement = (WorkbenchWizardElement) wizard;
wizardRegistry.removeExtension(wizardElement.getConfigurationElement().getDeclaringExtension(), new Object[] { wizardElement });
return;
}
}
}
Aggregations