Expand character details view sections
authorPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 12 Apr 2019 09:19:50 +0000 (11:19 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 12 Apr 2019 09:19:50 +0000 (11:19 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/CharacterDetailElement.java

index 88925279df18f2dcda0de86139d5e1815594de36..b5c8cb29fefd66f5c3e9ae2cac1f3f876c28965a 100644 (file)
@@ -87,26 +87,24 @@ public class CharacterDetailElement extends AbstractCdmDetailElement<Character>
 
         if (supportsCategoricalData.getSelection()) {
             sectionStateVocabularies = formFactory.createStateVocabulariesSection(getConversationHolder(),
-                    parentFormElement, ExpandableComposite.TWISTIE);
+                    parentFormElement, ExpandableComposite.TWISTIE| ExpandableComposite.EXPANDED);
             sectionStateVocabularies.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
             sectionStateVocabularies.setEntity(getEntity());
-
         }
         if (supportsQuantitativeData.getSelection()) {
             sectionMeasurementUnits = formFactory.createMeasurementUnitCollectionSection(getConversationHolder(),
-                    parentFormElement, ExpandableComposite.TWISTIE);
+                    parentFormElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
             sectionMeasurementUnits.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
             sectionMeasurementUnits.setEntity(getEntity());
 
             sectionStatisticalMeasures = formFactory.createStatisticalMeasureCollectionSection(getConversationHolder(),
-                    parentFormElement, ExpandableComposite.TWISTIE);
+                    parentFormElement, ExpandableComposite.TWISTIE| ExpandableComposite.EXPANDED);
             sectionStatisticalMeasures.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
             sectionStatisticalMeasures.setEntity(getEntity());
         }
         if (supportsCategoricalData.getSelection() || supportsQuantitativeData.getSelection()) {
             sectionModifierVocabularies = formFactory.createRecommendedModifierVocabulariesCollectionSection(
-                    getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE
-                           );
+                    getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
             sectionModifierVocabularies.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
             sectionModifierVocabularies.setEntity(getEntity());
         }
@@ -180,19 +178,19 @@ public class CharacterDetailElement extends AbstractCdmDetailElement<Character>
 
            //measurement units
            sectionMeasurementUnits = formFactory.createMeasurementUnitCollectionSection(getConversationHolder(),
-                   parentFormElement, ExpandableComposite.TWISTIE);
+                   parentFormElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
            sectionMeasurementUnits.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
            sectionMeasurementUnits.setEntity(getEntity());
 
            //statistical measures
            sectionStatisticalMeasures = formFactory.createStatisticalMeasureCollectionSection(
-                   getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE);
+                   getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
            sectionStatisticalMeasures.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
            sectionStatisticalMeasures.setEntity(getEntity());
 
            //modifiers
            sectionModifierVocabularies = formFactory.createRecommendedModifierVocabulariesCollectionSection(
-                   getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE);
+                   getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
            sectionModifierVocabularies.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
            sectionModifierVocabularies.setEntity(getEntity());
        }
@@ -213,13 +211,13 @@ public class CharacterDetailElement extends AbstractCdmDetailElement<Character>
 
            //states
            sectionStateVocabularies = formFactory.createStateVocabulariesSection(getConversationHolder(),
-                parentFormElement, ExpandableComposite.TWISTIE);
+                parentFormElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
         sectionStateVocabularies.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
         sectionStateVocabularies.setEntity(getEntity());
 
         //modifiers
         sectionModifierVocabularies = formFactory.createRecommendedModifierVocabulariesCollectionSection(
-                getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE);
+                getConversationHolder(), parentFormElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
         sectionModifierVocabularies.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
         sectionModifierVocabularies.setEntity(getEntity());
        }