Revision d3feab7b
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/SpecimenAdminPreferences.java | ||
---|---|---|
163 | 163 |
ICdmRepository controller = CdmStore.getCurrentApplicationConfiguration(); |
164 | 164 |
if (controller != null){ |
165 | 165 |
IPreferenceService service = controller.getPreferenceService(); |
166 |
PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewEditorInstance(), PreferencePredicate.ShowSpecimen); |
|
166 |
PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowSpecimen);
|
|
167 | 167 |
CdmPreference isShowSpecimenPref = service.find(key); |
168 | 168 |
if (isShowSpecimenPref != null){ |
169 | 169 |
this.isShowSpecimenRelatedIssues = Boolean.valueOf(isShowSpecimenPref.getValue()); |
... | ... | |
172 | 172 |
} |
173 | 173 |
|
174 | 174 |
|
175 |
key = CdmPreference.NewKey(PreferenceSubject.NewEditorInstance(), PreferencePredicate.ShowCollectingAreasInGeneralSection); |
|
175 |
key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowCollectingAreasInGeneralSection);
|
|
176 | 176 |
CdmPreference isShowCollectingAreaInGeneralSectionPref = service.find(key); |
177 | 177 |
if (isShowCollectingAreaInGeneralSectionPref != null){ |
178 | 178 |
this.isShowCollectingAreaInGeneralSection = Boolean.valueOf(isShowCollectingAreaInGeneralSectionPref.getValue()); |
179 | 179 |
} |
180 | 180 |
|
181 |
key = CdmPreference.NewKey(PreferenceSubject.NewEditorInstance(), PreferencePredicate.DeterminationOnlyForFieldUnits); |
|
181 |
key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.DeterminationOnlyForFieldUnits);
|
|
182 | 182 |
CdmPreference isDeterminationOnlyForFieldUnitsPref = service.find(key); |
183 | 183 |
if (isDeterminationOnlyForFieldUnitsPref != null){ |
184 | 184 |
this.isDeterminationOnlyForFieldUnits = Boolean.valueOf(isDeterminationOnlyForFieldUnitsPref.getValue()); |
185 | 185 |
} |
186 |
key = CdmPreference.NewKey(PreferenceSubject.NewEditorInstance(), PreferencePredicate.ShowTaxonAssociations); |
|
186 |
key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowTaxonAssociations);
|
|
187 | 187 |
CdmPreference isShowTaxonAssociationPref = service.find(key); |
188 | 188 |
if (isShowTaxonAssociationPref != null){ |
189 | 189 |
this.isShowTaxonAssociation = Boolean.valueOf(isShowTaxonAssociationPref.getValue()); |
190 | 190 |
isUseLocalPreference = isShowTaxonAssociationPref.isAllowOverride(); |
191 | 191 |
} |
192 | 192 |
|
193 |
key = CdmPreference.NewKey(PreferenceSubject.NewEditorInstance(), PreferencePredicate.ShowLifeForm); |
|
193 |
key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowLifeForm);
|
|
194 | 194 |
CdmPreference isShowLifeFormPref = service.find(key); |
195 | 195 |
if (isShowLifeFormPref != null){ |
196 | 196 |
this.isShowLifeForm = Boolean.valueOf(isShowLifeFormPref.getValue()); |
Also available in: Unified diff
set specimen preference to true when editing the first time