Revision 755b2883
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/OrcidWithLabelElement.java | ||
---|---|---|
77 | 77 |
if(parent.getLayout() instanceof TableWrapLayout){ |
78 | 78 |
numColumns = ((TableWrapLayout)parent.getLayout()).numColumns; |
79 | 79 |
} |
80 |
labelException.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(numColumns, 1));
|
|
80 |
labelException.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(numColumns, 2));
|
|
81 | 81 |
labelException.setBackground(getPersistentBackground()); |
82 |
labelException.setText("\n\n"); //$NON-NLS-1$ |
|
82 | 83 |
addControl(labelException); |
83 | 84 |
setParsedText(initialObject); |
84 | 85 |
} |
... | ... | |
87 | 88 |
try { |
88 | 89 |
labelException.setFont(JFaceResources.getFontRegistry().get(JFaceResources.DEFAULT_FONT)); |
89 | 90 |
labelException.setForeground(getPersistentBackground()); |
90 |
labelException.setText(""); //$NON-NLS-1$ |
|
91 | 91 |
return getParsedText(); |
92 | 92 |
} catch (Exception e) { |
93 | 93 |
labelException.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT)); |
94 | 94 |
labelException.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_RED)); |
95 |
labelException.setText(Messages.OrcidWithLabelElement_DOI_NOT_SAVED+e.getLocalizedMessage()); |
|
95 |
labelException.setText(Messages.OrcidWithLabelElement_ORCID_NOT_SAVED + " " + e.getLocalizedMessage()); |
|
96 |
labelException.requestLayout(); |
|
96 | 97 |
return null; |
97 | 98 |
} |
98 | 99 |
} |
Also available in: Unified diff
ref #8667: smaller layout issues for orcids