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);
}
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;
}
}