|
17 | 17 | import org.eclipse.jface.layout.GridDataFactory; |
18 | 18 | import org.eclipse.jface.layout.GridLayoutFactory; |
19 | 19 | import org.eclipse.swt.SWT; |
| 20 | +import org.eclipse.swt.custom.StyledText; |
20 | 21 | import org.eclipse.swt.events.ModifyEvent; |
21 | 22 | import org.eclipse.swt.events.ModifyListener; |
22 | 23 | import org.eclipse.swt.layout.GridData; |
@@ -58,7 +59,7 @@ public boolean getTestCaseDescriptionOverride() { |
58 | 59 |
|
59 | 60 | private Label lblLoadingProgress; |
60 | 61 |
|
61 | | - private Text lblOperationError; |
| 62 | + private StyledText lblOperationError; |
62 | 63 |
|
63 | 64 | private final Optional<String> linkedIssueKey; |
64 | 65 |
|
@@ -107,13 +108,14 @@ protected Control createDialogArea(Composite parent) { |
107 | 108 | GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).create()); |
108 | 109 |
|
109 | 110 | // The Label doesn't support wrapping text |
110 | | - lblOperationError = new Text(jiraIssueKeyContainer, SWT.READ_ONLY | SWT.MULTI | SWT.WRAP); |
| 111 | + lblOperationError = new StyledText(jiraIssueKeyContainer, SWT.READ_ONLY | SWT.MULTI | SWT.WRAP); |
111 | 112 | lblOperationError.setForeground(Theme.getErrorColor()); |
112 | 113 | lblOperationError.setBackground(parent.getBackground()); |
113 | 114 | lblOperationError.setLayoutData( |
114 | 115 | GridDataFactory.fillDefaults() |
115 | 116 | .hint(jiraIssueKeyContainer.getSize().x, SWT.DEFAULT) |
116 | 117 | .align(SWT.FILL, SWT.CENTER).grab(true, false).create()); |
| 118 | + lblOperationError.setCaret(null); // Removes the text cursor |
117 | 119 |
|
118 | 120 | toggleLoading(false); |
119 | 121 | hideError(); |
|
0 commit comments