Project

General

Profile

Download (2.92 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.preference.wizard;
10

    
11
import java.util.ArrayList;
12
import java.util.Collection;
13
import java.util.List;
14
import java.util.Map;
15

    
16
import org.eclipse.jface.viewers.ColumnViewer;
17
import org.eclipse.swt.widgets.Composite;
18

    
19
import eu.etaxonomy.cdm.model.common.CdmBase;
20
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
21
import eu.etaxonomy.cdm.model.common.TermType;
22
import eu.etaxonomy.cdm.model.common.TermVocabulary;
23
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
24
import eu.etaxonomy.cdm.persistence.dto.TermVocabularyDto;
25
import eu.etaxonomy.taxeditor.l10n.Messages;
26
import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
27
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
28

    
29
/**
30
 * @author k.luther
31
 * @since 05.10.2018
32
 *
33
 */
34
public class AvailableDistributionStatusPage extends AbstractTermSelectionWizardPage implements ICdmEntitySessionEnabled{
35

    
36
    private ColumnViewer viewer;
37
    private List<TermVocabulary<DefinedTermBase>> vocabularies = new ArrayList<>();
38
    private CdmPreference pref;
39

    
40

    
41
    public AvailableDistributionStatusPage(String pageName, CdmPreference pref) {
42
        super(pageName, TermType.PresenceAbsenceTerm);
43
        this.pref = pref;
44

    
45
    }
46

    
47
    /**
48
     * {@inheritDoc}
49
     */
50
    @Override
51
    public void createControl(Composite parent) {
52

    
53
       // String checkedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_VOCABULARIES);
54

    
55

    
56
       // String grayedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_AREA_OCCURENCE_STATUS_GRAYED);
57
        setTitle(Messages.AvailableDistributionStatusPage_PAGE_TITLE);
58
        setDescription(Messages.AvailableDistributionStatusPage_PAGE_DESCRIPTION);
59

    
60
        super.createControl(parent);
61

    
62
    }
63

    
64
    @Override
65
    protected String getCheckedValuesFromPreferences() {
66
        String checkedValues = null;
67
        if (pref != null){
68
            checkedValues = pref.getValue();
69
        }
70
        return checkedValues;
71
    }
72

    
73
    @Override
74
    protected String getGrayedValuesFromPreferences() {
75
        return null;
76
    }
77

    
78
    /**
79
     * {@inheritDoc}
80
     */
81
    @Override
82
    public ICdmEntitySession getCdmEntitySession() {
83
        // TODO Auto-generated method stub
84
        return null;
85
    }
86

    
87
    /**
88
     * {@inheritDoc}
89
     */
90
    @Override
91
    public <T extends CdmBase> Collection<T> getRootEntities() {
92
        // TODO Auto-generated method stub
93
        return null;
94
    }
95

    
96
    /**
97
     * {@inheritDoc}
98
     */
99
    @Override
100
    public Map<Object, List<String>> getPropertyPathsMap() {
101
        // TODO Auto-generated method stub
102
        return null;
103
    }
104
    @Override
105
    protected  List<TermVocabularyDto> getVocabulariesFromPreference(){
106
     return null;
107
    }
108

    
109
}
(6-6/14)