Skip to content

Commit f8d7e29

Browse files
authored
[STUDIO-7159] Remove text cursor (#71)
1 parent 18731a2 commit f8d7e29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/katalon/plugin/jira/composer/testcase/JiraIssueLinkDialog.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.eclipse.jface.layout.GridDataFactory;
1818
import org.eclipse.jface.layout.GridLayoutFactory;
1919
import org.eclipse.swt.SWT;
20+
import org.eclipse.swt.custom.StyledText;
2021
import org.eclipse.swt.events.ModifyEvent;
2122
import org.eclipse.swt.events.ModifyListener;
2223
import org.eclipse.swt.layout.GridData;
@@ -58,7 +59,7 @@ public boolean getTestCaseDescriptionOverride() {
5859

5960
private Label lblLoadingProgress;
6061

61-
private Text lblOperationError;
62+
private StyledText lblOperationError;
6263

6364
private final Optional<String> linkedIssueKey;
6465

@@ -107,13 +108,14 @@ protected Control createDialogArea(Composite parent) {
107108
GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).create());
108109

109110
// 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);
111112
lblOperationError.setForeground(Theme.getErrorColor());
112113
lblOperationError.setBackground(parent.getBackground());
113114
lblOperationError.setLayoutData(
114115
GridDataFactory.fillDefaults()
115116
.hint(jiraIssueKeyContainer.getSize().x, SWT.DEFAULT)
116117
.align(SWT.FILL, SWT.CENTER).grab(true, false).create());
118+
lblOperationError.setCaret(null); // Removes the text cursor
117119

118120
toggleLoading(false);
119121
hideError();

0 commit comments

Comments
 (0)