ref #8667: smaller layout issues for orcids
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / OrcidWithLabelElement.java
index 9d8c3fd7fb8b70f2e4f3c8bc8b56cc5332dbeb1e..29a1f3a3270b16479c7b965d056714c87740ecef 100755 (executable)
@@ -77,8 +77,9 @@ public class OrcidWithLabelElement extends AbstractUriWithExceptionLabelElement<
         if(parent.getLayout() instanceof TableWrapLayout){
             numColumns = ((TableWrapLayout)parent.getLayout()).numColumns;
         }
-        labelException.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(numColumns, 1));
+        labelException.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(numColumns, 2));
         labelException.setBackground(getPersistentBackground());
+        labelException.setText("\n\n"); //$NON-NLS-1$
         addControl(labelException);
         setParsedText(initialObject);
     }
@@ -87,12 +88,12 @@ public class OrcidWithLabelElement extends AbstractUriWithExceptionLabelElement<
         try {
             labelException.setFont(JFaceResources.getFontRegistry().get(JFaceResources.DEFAULT_FONT));
             labelException.setForeground(getPersistentBackground());
-            labelException.setText(""); //$NON-NLS-1$
             return getParsedText();
         } catch (Exception e) {
             labelException.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT));
             labelException.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_RED));
-            labelException.setText(Messages.OrcidWithLabelElement_DOI_NOT_SAVED+e.getLocalizedMessage());
+            labelException.setText(Messages.OrcidWithLabelElement_ORCID_NOT_SAVED + " " + e.getLocalizedMessage());
+            labelException.requestLayout();
             return null;
         }
     }