ref #8146 Show term type of term trees in details view
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 05:59:28 +0000 (07:59 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 05:59:28 +0000 (07:59 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureTreeDetailElement.java

index 8e404fe..8f53f99 100644 (file)
@@ -8,7 +8,11 @@
 */
 package eu.etaxonomy.taxeditor.ui.section.feature;
 
+import org.eclipse.swt.widgets.Label;
+
 import eu.etaxonomy.cdm.model.term.FeatureTree;
+import eu.etaxonomy.taxeditor.model.ColorResources;
+import eu.etaxonomy.taxeditor.preference.Resources;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractIdentifiableEntityDetailElement;
@@ -33,6 +37,12 @@ public class FeatureTreeDetailElement extends AbstractIdentifiableEntityDetailEl
                 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