Project

General

Profile

« Previous | Next » 

Revision 159bb3e7

Added by Katja Luther almost 7 years ago

ref #6619: add the possibility to ignore methods of the configurator in the configuration wizard of imports and exports

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExcelDistributionUpdateWizard.java
13 13
import java.io.FileNotFoundException;
14 14
import java.io.IOException;
15 15
import java.net.URI;
16
import java.util.ArrayList;
17
import java.util.List;
16 18
import java.util.UUID;
17 19

  
18 20
import org.apache.commons.io.IOUtils;
......
95 97
    /** {@inheritDoc} */
96 98
    @Override
97 99
    public void addPages() {
98
        super.addPages();
100
        addConfiguratorPage();
101
        addDataSourcePage();
99 102

  
100
        dataSourcePage = new ImportFromFileAndChooseVocIdWizardOage("Choose NormalExplicit",
101
                "Please choose an xls file in the NormalExplicit format.", new String[]{"*.xlsx", "*.xls", "*.*"});
103

  
104
    }
105
    @Override
106
    protected void addConfiguratorPage(){
107
        List<String> ignoreMethods = new ArrayList<>();
108
        ignoreMethods.add("setIgnoreNull");
109
        ignoreMethods.add("setInteractWithUser");
110
        ignoreMethods.add("setUseClassification");
111
        pageConfiguration = GenericConfiguratorWizardPage.Import(CONFIGURATION_PAGE, getConfigurator(), ignoreMethods);
112
        addPage(pageConfiguration);
113
    }
114

  
115
    private void addDataSourcePage(){
116
        dataSourcePage = new ImportFromFileAndChooseVocIdWizardOage("Choose Excel File",
117
                "Please choose an xls file in the Distribution Update format.", new String[]{"*.xlsx", "*.xls", "*.*"});
102 118
        addPage(dataSourcePage);
103 119
    }
120

  
121

  
104 122
}

Also available in: Unified diff