Project

General

Profile

« Previous | Next » 

Revision 705a9fe6

Added by Patrick Plitzner about 3 years ago

ref #8146 Show term type of term trees in details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/FeatureTreeDetailElement.java
8 8
*/
9 9
package eu.etaxonomy.taxeditor.ui.section.feature;
10 10

  
11
import org.eclipse.swt.widgets.Label;
12

  
11 13
import eu.etaxonomy.cdm.model.term.FeatureTree;
14
import eu.etaxonomy.taxeditor.model.ColorResources;
15
import eu.etaxonomy.taxeditor.preference.Resources;
12 16
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
13 17
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
14 18
import eu.etaxonomy.taxeditor.ui.section.AbstractIdentifiableEntityDetailElement;
......
33 37
                formElement, "Title Cache", entity.getTitleCache(),
34 38
                entity.isProtectedTitleCache(), style);
35 39
	    toggleable_cache.getBtnToggleProtectTitleCache().setEnabled(false);
40

  
41
	    Label lblTermType = new Label(formElement.getLayoutComposite(), style);
42
        lblTermType.setText("Term Type");
43
        Label lblStructureText = new Label(formElement.getLayoutComposite(), style);
44
        lblStructureText.setText(entity.getTermType().getMessage());
45
        lblStructureText.setForeground(ColorResources.getColor(Resources.BLACK));
36 46
    }
37 47

  
38 48
	@Override

Also available in: Unified diff