Revision 1d76231c
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/SpecimenOrObservationPreferences.java | ||
---|---|---|
57 | 57 |
PrefKey keyCollectingAreas = CdmPreference.NewKey(PreferenceSubject.NewDatabaseInstance(), PreferencePredicate.ShowCollectingAreasInGeneralSection); |
58 | 58 |
CdmPreference prefCollectingAreas = service.find(keyCollectingAreas); |
59 | 59 |
|
60 |
getPreferenceStore().setValue(IPreferenceKeys.ALLOW_OVERRIDE_SPECIMEN_PREF, prefTaxonAssociation == null? true : prefTaxonAssociation.isAllowOverride()); |
|
60 |
getPreferenceStore().setValue(IPreferenceKeys.SHOW_TAXON_ASSOCIATIONS_ALLOW_OVERRIDE, prefTaxonAssociation == null? true : prefTaxonAssociation.isAllowOverride()); |
|
61 |
getPreferenceStore().setValue(IPreferenceKeys.DETERMINATIONS_ONLY_FOR_FIELDUNITS_ALLOW_OVERRIDE, prefTaxonAssociation == null? true : prefTaxonAssociation.isAllowOverride()); |
|
62 |
getPreferenceStore().setValue(IPreferenceKeys.SHOW_COLLECTING_AREAS_IN_GENERAL_SECTION_ALLOW_OVERRIDE, prefTaxonAssociation == null? true : prefTaxonAssociation.isAllowOverride()); |
|
63 |
getPreferenceStore().setValue(IPreferenceKeys.SHOW_LIFE_FORM_ALLOW_OVERRIDE, prefTaxonAssociation == null? true : prefTaxonAssociation.isAllowOverride()); |
|
61 | 64 |
} |
62 |
if (getPreferenceStore().getBoolean(IPreferenceKeys.ALLOW_OVERRIDE_NOMENCLATURAL_CODE_KEY)) {
|
|
65 |
if (getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_TAXON_ASSOCIATIONS_OVERRIDE)) {
|
|
63 | 66 |
setDescription("Set the preferences for the display of specimen and obeservations."); |
64 | 67 |
}else{ |
65 | 68 |
setDescription("The CDM settings don't allow to set the preferences for the display of specimen and obeservations locally. If you need to make local settings, please ask an administrator."); |
Also available in: Unified diff
ref #7063: better handling of preferences for distribution editor and other places