Project

General

Profile

« Previous | Next » 

Revision 1d76231c

Added by Katja Luther over 5 years ago

ref #7063: better handling of preferences for distribution editor and other places

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/AvailableAreaVocabulariesPage.java
38 38
 *
39 39
 */
40 40
public class AvailableAreaVocabulariesPage  extends AbstractAreaSelectionWizard implements ICdmEntitySessionEnabled{
41
    boolean localPref;
41 42

  
42 43
    /**
43 44
     * @param pageName
44 45
     */
45
    public AvailableAreaVocabulariesPage(String pageName) {
46
    public AvailableAreaVocabulariesPage(String pageName, boolean localPref) {
46 47
        super(pageName);
48
        this.localPref = localPref;
47 49

  
48 50
    }
49 51

  
......
53 55
    @Override
54 56
    public void createControl(Composite parent) {
55 57
        IPreferenceStore preferenceStore = PreferencesUtil.getPreferenceStore();
56
        String checkedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_VOCABULARIES);
58
       // String checkedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_VOCABULARIES);
59

  
60
        String vocString = PreferencesUtil.getPreferredVocabulariesForDistributionEditor(localPref);
57 61
       // String grayedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_AREA_OCCURENCE_STATUS_GRAYED);
58 62
        setTitle("Select vocabularies for Distribution Editor");
59 63
        setDescription("In order to be able to modify and see the distribution status of taxa,\n"
......
96 100

  
97 101
            }
98 102
        });
99
        rememberCheckedValues(checkedValues, null);
103
        rememberCheckedValues(vocString, null);
100 104
        setControl(composite);
101 105

  
102 106
    }

Also available in: Unified diff