2 * Copyright (C) 2018 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.taxeditor
.preference
.wizard
;
11 import java
.util
.List
;
13 import org
.eclipse
.swt
.widgets
.Composite
;
15 import eu
.etaxonomy
.cdm
.model
.metadata
.CdmPreference
;
16 import eu
.etaxonomy
.cdm
.model
.metadata
.PreferencePredicate
;
17 import eu
.etaxonomy
.cdm
.model
.term
.TermType
;
18 import eu
.etaxonomy
.cdm
.persistence
.dto
.TermVocabularyDto
;
19 import eu
.etaxonomy
.taxeditor
.l10n
.Messages
;
20 import eu
.etaxonomy
.taxeditor
.preference
.PreferencesUtil
;
29 public class AvailableDistributionStatusPage
extends AbstractAdminTermSelectionWizardPage
{
33 public AvailableDistributionStatusPage(String pageName
, CdmPreference pref
, boolean localPref
) {
34 super(pageName
, TermType
.PresenceAbsenceTerm
, pref
);
35 this.localPref
= localPref
;
39 public void createControl(Composite parent
) {
40 setTitle(Messages
.AvailableDistributionStatusPage_PAGE_TITLE
);
41 setDescription(Messages
.AvailableDistributionStatusPage_PAGE_DESCRIPTION
);
43 override
= PreferencesUtil
.getBooleanValue(PreferencesUtil
.createOverridePreferenceString(PreferencePredicate
.AvailableDistributionStatus
.getKey()));
44 createAllowOverrideButton(parent
);
46 super.createControl(parent
);
51 protected String
getCheckedValuesFromPreferences() {
52 String checkedValues
= null;
54 checkedValues
= PreferencesUtil
.getStringValue(PreferencePredicate
.AvailableDistributionStatus
.getKey(), true);
55 }else if(pref
!= null){
56 checkedValues
= pref
.getValue();
67 protected List
<TermVocabularyDto
> getVocabulariesFromPreference() {
68 // TODO Auto-generated method stub