From: Andreas Müller Date: Fri, 11 Nov 2016 09:55:12 +0000 (+0100) Subject: ref #3925 remove unplaced and excluded from taxon view X-Git-Tag: 4.4.0^2~54 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/dc54e76ec414922cd1196d641de410d7df94fbed?hp=0d2ee5d613831bc7a5f2d8c55d623896560704e6 ref #3925 remove unplaced and excluded from taxon view --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java index a1388967c..2d612eb92 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java @@ -112,12 +112,13 @@ public class TaxonBaseDetailElement extends AbstractIdentifiableEntityDetailElem checkbox_useNameCache = formFactory.createCheckbox(formElement, "Exclude Authorship", entity.isUseNameCache(), style); - if (entity instanceof Taxon) { - checkbox_excluded = formFactory.createCheckbox(formElement, - "Taxon is excluded", ((Taxon) entity).isExcluded(), style); - checkbox_unplaced = formFactory.createCheckbox(formElement, - "Taxon is unplaced", ((Taxon) entity).isUnplaced(), style); - } +//#3925 +// if (entity instanceof Taxon) { +// checkbox_excluded = formFactory.createCheckbox(formElement, +// "Taxon is excluded", ((Taxon) entity).isExcluded(), style); +// checkbox_unplaced = formFactory.createCheckbox(formElement, +// "Taxon is unplaced", ((Taxon) entity).isUnplaced(), style); +// } checkbox_doubtful = formFactory.createCheckbox(formElement, entity.getClass().getSimpleName() + " is doubtful", entity.isDoubtful(), style); @@ -128,7 +129,7 @@ public class TaxonBaseDetailElement extends AbstractIdentifiableEntityDetailElem "Taxon is published", ((Taxon) entity).isPublish(), style); } - +//#5974 // if(entity instanceof Synonym){ // sectionSynonymRelationship = formFactory.createSynonymRelationshipDetailSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE); // sectionSynonymRelationship.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); @@ -181,10 +182,11 @@ public class TaxonBaseDetailElement extends AbstractIdentifiableEntityDetailElem getEntity().setAppendedPhrase(text_appendedPhrase.getText()); }else if (eventSource == text_secundum_microreference) { getEntity().setSecMicroReference(text_secundum_microreference.getText()); - }else if (eventSource == checkbox_excluded) { - ((Taxon) getEntity()).setExcluded(checkbox_excluded.getSelection()); - } else if (eventSource == checkbox_unplaced) { - ((Taxon) getEntity()).setUnplaced(checkbox_unplaced.getSelection()); +//#3925 +// }else if (eventSource == checkbox_excluded) { +// ((Taxon) getEntity()).setExcluded(checkbox_excluded.getSelection()); +// } else if (eventSource == checkbox_unplaced) { +// ((Taxon) getEntity()).setUnplaced(checkbox_unplaced.getSelection()); } else if (eventSource == checkbox_published) { ((Taxon)getEntity()).setPublish(checkbox_published.getSelection()); }