Merge security.ui bundle in the cms.ui.workbench bundle
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / forms / EditableLink.java
index 17e3255b1c12a57edf08fcda653e1ee29df91ea9..ece0be36b868b6e68649fb0525e12cd3b6cba787 100644 (file)
@@ -4,6 +4,7 @@ import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 
 import org.argeo.cms.viewers.EditablePart;
+import org.argeo.eclipse.ui.EclipseUiUtils;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
@@ -40,7 +41,7 @@ public class EditableLink extends EditablePropertyString implements
                Control child = getControl();
                if (child instanceof Label) {
                        Label lbl = (Label) child;
-                       if (FormUtils.notEmpty(text))
+                       if (EclipseUiUtils.isEmpty(text))
                                lbl.setText(message);
                        else if (readOnly)
                                setLinkValue(lbl, text);
@@ -50,7 +51,7 @@ public class EditableLink extends EditablePropertyString implements
                                lbl.setText(text);
                } else if (child instanceof Text) {
                        Text txt = (Text) child;
-                       if (FormUtils.notEmpty(text)) {
+                       if (EclipseUiUtils.isEmpty(text)) {
                                txt.setText("");
                                txt.setMessage(message);
                        } else