Project

General

Profile

« Previous | Next » 

Revision 69e82edd

Added by Katja Luther over 5 years ago

local preferences database specific

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/AvailableDistributionWizard.java
14 14

  
15 15
import org.apache.commons.collections.CollectionUtils;
16 16
import org.apache.commons.lang.StringUtils;
17
import org.eclipse.jface.preference.IPreferenceStore;
18 17
import org.eclipse.jface.viewers.CheckboxTreeViewer;
19 18
import org.eclipse.jface.wizard.Wizard;
20 19

  
......
82 81

  
83 82
            String saveCheckedElements = StringUtils.join(listUIIDChecked, ";"); //$NON-NLS-1$
84 83
            String saveGrayedElements = StringUtils.join(listUIIDGrayed, ";"); //$NON-NLS-1$
85
            IPreferenceStore preferenceStore = PreferencesUtil.getPreferenceStore();
84
           // IPreferenceStore preferenceStore = PreferencesUtil.getPreferenceStore();
86 85
            //ToDo, if whole vocabulary is selected, save the vocabulary not all areas
87 86

  
88 87
           // PreferencesUtil.setPreferredNamedAreasForDistributionEditor(saveCheckedElements, saveGrayedElements, false);
89
            preferenceStore.setValue(PreferencesUtil.DISTRIBUTION_AREA_OCCURENCE_STATUS, saveCheckedElements);
90
            preferenceStore.setValue(PreferencesUtil.DISTRIBUTION_AREA_OCCURENCE_STATUS_GRAYED, saveGrayedElements);
88
            PreferencesUtil.setStringValue(PreferencesUtil.DISTRIBUTION_AREA_OCCURENCE_STATUS, saveCheckedElements);
89
            PreferencesUtil.setStringValue(PreferencesUtil.DISTRIBUTION_AREA_OCCURENCE_STATUS_GRAYED, saveGrayedElements);
91 90
            return true;
92 91
        } else {
93 92
            return false;

Also available in: Unified diff