ref #3925 remove unplaced and excluded from taxon view
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 11 Nov 2016 09:55:12 +0000 (10:55 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 11 Nov 2016 09:55:12 +0000 (10:55 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java

index a1388967ca8153f44e2597ff100c88996ae621a8..2d612eb92b31a402cea73cc70bf6e7dd9e018fbd 100644 (file)
@@ -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());
                }