}
@Override
public IWizardPage getNextPage() {
ExternalCatalogueImportDescriptor id = this.selectedDescriptor;
ExternalCatalogueImportPageDescriptor d;
if(id instanceof ExternalCatalogueImportPageDescriptor) {
d = (ExternalCatalogueImportPageDescriptor)id;
} else {
return null;
}
// if (d == null) {
// if (descriptors != null && descriptors.size() == 1)
// d = descriptors.get(0);
// }
if (d != null) {
try {
IDataWizard wizard = (IDataWizard) getWizard();
ExternalCatalogueImportPage page = getPageCache().get(d);
if (page == null) {
page = d.createImportPage();
getPageCache().put(d, page);
}
wizard.init((WizardPage) page);
return page;