Project

General

Profile

Download (1.79 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.ui.dialog.configurator;
10

    
11
import org.eclipse.jface.wizard.Wizard;
12

    
13
import eu.etaxonomy.cdm.api.service.config.SecundumForSubtreeConfigurator;
14
import eu.etaxonomy.cdm.model.reference.Reference;
15

    
16
/**
17
 * @author k.luther
18
 * @date 10.02.2017
19
 *
20
 */
21
public class SetSecundumForSubtreeConfigurationWizard extends Wizard {
22

    
23
    Reference newSecRef;
24
    private final SecundumForSubtreeConfigurator configurator;
25

    
26

    
27
    private SetSecundumConfiguratorWizardPage page;
28

    
29

    
30

    
31
    /**
32
     * @param parentShell
33
     * @param dialogTitle
34
     * @param dialogTitleImage
35
     * @param dialogMessage
36
     * @param dialogImageType
37
     * @param dialogButtonLabels
38
     * @param defaultIndex
39
     * @param config
40
     */
41
    public SetSecundumForSubtreeConfigurationWizard(SecundumForSubtreeConfigurator config) {
42
        super();
43
       // super(parentShell, dialogTitle, dialogTitleImage, dialogMessage, dialogImageType, dialogButtonLabels, defaultIndex);
44
        this.configurator = config;
45
        setNeedsProgressMonitor(true);
46

    
47

    
48

    
49
    }
50

    
51

    
52

    
53

    
54

    
55

    
56

    
57

    
58

    
59
    /**
60
     * {@inheritDoc}
61
     */
62
    @Override
63
    public boolean performFinish() {
64
       if (!(configurator.isIncludeAcceptedTaxa() || configurator.isIncludeSynonyms())){
65
           return false;
66
       }else{
67
           return true;
68
       }
69
    }
70

    
71
    /* (non-Javadoc)
72
     * @see org.eclipse.jface.wizard.Wizard#addPages()
73
     */
74
    /** {@inheritDoc} */
75
    @Override
76
    public void addPages() {
77
        page = new SetSecundumConfiguratorWizardPage(configurator);
78
        addPage(page);
79
    }
80

    
81

    
82
}
(5-5/5)