Improve theming.
[gpl/argeo-suite.git] / core / org.argeo.entity.ui / src / org / argeo / entity / ui / forms / MultiTermsPart.java
index 1084f4cb9bd6a78fb31138fb7ed84487727947ac..af8df82b0184f574e1f0a74dc81e88377020f65c 100644 (file)
@@ -55,7 +55,8 @@ public class MultiTermsPart extends AbstractTermsPart {
                                String display = getTermLabel(value);
                                lbl.setText(display);
                                CmsUiUtils.style(lbl, style == null ? FormStyle.propertyText.style() : style);
-                               if (editable)
+                               processTermListLabel(value, lbl);
+                               if (isEditable())
                                        lbl.addMouseListener((MouseDoubleClick) (e) -> {
                                                startEditing();
                                        });
@@ -79,7 +80,7 @@ public class MultiTermsPart extends AbstractTermsPart {
                                }
                        }
                else {// empty
-                       if (editable && !isEditing()) {
+                       if (isEditable() && !isEditing()) {
                                ToolBar toolBar = new ToolBar(placeholder, SWT.HORIZONTAL);
                                ToolItem addItem = new ToolItem(toolBar, SWT.FLAT);
                                styleAdd(addItem);
@@ -183,7 +184,7 @@ public class MultiTermsPart extends AbstractTermsPart {
                        terms: for (String str : curr) {
                                Term term = termsManager.getTerm(str);
                                if (term == null) {
-                                       log.warn("Ignoring term " + str + " as it was not found.");
+                                       log.warn("Ignoring term " + str + " for " + getNode() + ", as it was not found.");
                                        continue terms;
                                }
                                res.add(term);