Revision 2c4c870d
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/StatusComboBoxDataProvider.java | ||
---|---|---|
49 | 49 |
@Override |
50 | 50 |
public List<?> getValues(int columnIndex, int rowIndex) { |
51 | 51 |
NamedArea area = editor.getAreaToColumnIndexMap().get(columnIndex); |
52 |
PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewInstance("/"+PreferenceSubject.DISTR_EDITOR+"/area/"+area.getUuid().toString()), PreferencePredicate.AvailableDistributionPerAreaStatus);
|
|
52 |
PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewInstance("/"+PreferenceSubject.DISTR_EDITOR+"/area/"+area.getUuid().toString()), PreferencePredicate.AvailableDistributionStatus); |
|
53 | 53 |
CdmPreference pref = CdmPreferenceCache.instance().findBestMatching(key); |
54 | 54 |
if (pref == null) { |
55 |
pref = CdmPreferenceCache.instance().get(PreferencePredicate.AvailableDistributionStatus.getKey()); |
|
55 |
key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.AvailableDistributionStatus); |
|
56 |
pref = CdmPreferenceCache.instance().findBestMatching(key); |
|
56 | 57 |
if (pref == null){ |
57 | 58 |
pref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.AvailableDistributionStatus, PreferencesUtil.getStringValue(PreferencePredicate.AvailableDistributionStatus.getKey())); |
58 | 59 |
} |
Also available in: Unified diff
ref #7920: predicate for area specific status pref is the same as for the general pref