ref #8146 move term type to top in details view
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 10:51:13 +0000 (12:51 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 10:51:13 +0000 (12:51 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureTreeDetailElement.java

index 8f53f99..7bfa04b 100644 (file)
@@ -33,16 +33,16 @@ public class FeatureTreeDetailElement extends AbstractIdentifiableEntityDetailEl
 
        @Override
        protected void createControls(ICdmFormElement formElement, FeatureTree entity, int style) {
+           Label lblTermType = new Label(formElement.getLayoutComposite(), style);
+           lblTermType.setText("Term Type");
+           Label lblStructureText = new Label(formElement.getLayoutComposite(), style);
+           lblStructureText.setText(entity.getTermType().getMessage());
+           lblStructureText.setForeground(ColorResources.getColor(Resources.BLACK));
+
            toggleable_cache = formFactory.createToggleableTextField(
                 formElement, "Title Cache", entity.getTitleCache(),
                 entity.isProtectedTitleCache(), style);
            toggleable_cache.getBtnToggleProtectTitleCache().setEnabled(false);
-
-           Label lblTermType = new Label(formElement.getLayoutComposite(), style);
-        lblTermType.setText("Term Type");
-        Label lblStructureText = new Label(formElement.getLayoutComposite(), style);
-        lblStructureText.setText(entity.getTermType().getMessage());
-        lblStructureText.setForeground(ColorResources.getColor(Resources.BLACK));
     }
 
        @Override