Search in sources :

Example 1 with AbstractConfigurationPage

use of eu.esdihumboldt.hale.ui.io.config.AbstractConfigurationPage in project hale by halestudio.

the class ExportWizard method createConfigurationPages.

@Override
protected ListMultimap<String, AbstractConfigurationPage<? extends P, ? extends IOWizard<P>>> createConfigurationPages(Collection<IOProviderDescriptor> factories) {
    ListMultimap<String, AbstractConfigurationPage<? extends P, ? extends IOWizard<P>>> configPages = super.createConfigurationPages(factories);
    ListMultimap<String, AbstractConfigurationPage<? extends P, ? extends IOWizard<P>>> result = ArrayListMultimap.create();
    // append target selection page if applicable
    for (IOProviderDescriptor descr : factories) {
        if (!suppressTargetPage() && descr.getSupportedTypes() != null && !descr.getSupportedTypes().isEmpty()) {
            result.put(descr.getIdentifier(), getSelectTargetPage());
        }
    }
    // append all other configuration pages
    result.putAll(configPages);
    return result;
}
Also used : IOProviderDescriptor(eu.esdihumboldt.hale.common.core.io.extension.IOProviderDescriptor) AbstractConfigurationPage(eu.esdihumboldt.hale.ui.io.config.AbstractConfigurationPage)

Aggregations

IOProviderDescriptor (eu.esdihumboldt.hale.common.core.io.extension.IOProviderDescriptor)1 AbstractConfigurationPage (eu.esdihumboldt.hale.ui.io.config.AbstractConfigurationPage)1