Add hybrid section configurator flag
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 6 Jul 2017 13:06:08 +0000 (15:06 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 6 Jul 2017 13:35:29 +0000 (15:35 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/NameDetailsViewComposite.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/NameDetailsConfigurator.java

index 06d5dd9..1cd019c 100755 (executable)
@@ -290,7 +290,6 @@ public class NameDetailsViewComposite extends Composite {
       config.setNomenclaturalReferenceSectionActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE));
       config.setProtologueActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_PROTOLOGUE));
       config.setRankActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_RANK));
-      config.setSimpleDetailsViewActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION));
       config.setTaxonSectionActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_TAXON));
       config.setTypeDesignationSectionActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION));
       config.setHybridActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_HYBRID));
index f100783..47f6981 100644 (file)
@@ -31,6 +31,7 @@ public class NameDetailsConfigurator {
     private boolean isTypeDesignationSectionActivated = true;
     private boolean isNameRelationsSectionActivated = true;
     private boolean isProtologueActivated = true;
+    private boolean isHybridActivated = true;
 
     public NameDetailsConfigurator(boolean isSimpleDetailsViewActivated){
         this.isSimpleDetailsViewActivated = isSimpleDetailsViewActivated;
@@ -212,11 +213,28 @@ public class NameDetailsConfigurator {
         result.append("nameRelation");
         result.append(":");
         result.append(this.isNameRelationsSectionActivated());
+        result.append(";");
+        result.append("hybrid");
+        result.append(":");
+        result.append(this.isHybridActivated());
 
       return result.toString();
     }
 
     /**
+     * @return
+     */
+    public Object isHybridActivated() {
+
+        return isHybridActivated;
+    }
+
+    public void setHybridActivated(boolean isHybrid) {
+
+        this.isHybridActivated= isHybrid;
+    }
+
+    /**
      * @return the isAuthorCacheActivated
      */
     public boolean isAuthorCacheActivated() {