Revision 185eb33b
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditingSupportE4.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
import eu.etaxonomy.cdm.model.common.Annotation; |
33 | 33 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
34 |
import eu.etaxonomy.cdm.model.common.Marker; |
|
35 |
import eu.etaxonomy.cdm.model.common.MarkerType; |
|
36 | 34 |
import eu.etaxonomy.cdm.model.common.OrderedTermComparator; |
37 | 35 |
import eu.etaxonomy.cdm.model.common.Representation; |
38 | 36 |
import eu.etaxonomy.cdm.model.common.TermType; |
... | ... | |
272 | 270 |
if (!descriptions.isEmpty()) { |
273 | 271 |
//TODO: use the default description |
274 | 272 |
for (TaxonDescription desc : descriptions) { |
275 |
if (PreferencesUtil.getBooleanValue(EditorPreferencePredicate.OwnDescriptionForDistributionEditor.getKey())){ |
|
276 |
for (Marker marker: desc.getMarkers()){ |
|
277 |
if(marker.getMarkerType().equals(MarkerType.DISTRIBUTION_EDITOR_FACT())){ |
|
278 |
desc.addElement(distribution); |
|
279 |
added = true; |
|
280 |
break; |
|
281 |
} |
|
282 |
} |
|
283 |
}else { |
|
273 |
// if (PreferencesUtil.getBooleanValue(EditorPreferencePredicate.OwnDescriptionForDistributionEditor.getKey())){
|
|
274 |
// for (Marker marker: desc.getMarkers()){
|
|
275 |
// if(marker.getMarkerType().equals(MarkerType.DISTRIBUTION_EDITOR_FACT())){
|
|
276 |
// desc.addElement(distribution);
|
|
277 |
// added = true;
|
|
278 |
// break;
|
|
279 |
// }
|
|
280 |
// }
|
|
281 |
// }else {
|
|
284 | 282 |
desc.addElement(distribution); |
285 | 283 |
added = true; |
286 | 284 |
break; |
287 |
} |
|
285 |
// }
|
|
288 | 286 |
|
289 | 287 |
} |
290 | 288 |
} |
Also available in: Unified diff
ref #7849: improve DB preference handling and use editorpreferencePredicates keys also for local preferences