mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-test] proper reading text of SimpleColoredComponent
We should use SimpleColoredComponent#getCharSequence method to get the SCC text value instead of iterator because it is not thread safe.
This commit is contained in:
+2
-2
@@ -119,14 +119,14 @@ private fun getValueWithCellRenderer(cellRendererComponent: Component, isExtende
|
||||
|
||||
private fun SimpleColoredComponent.getFullText(): String? {
|
||||
return computeOnEdt {
|
||||
this.iterator().asSequence().joinToString()
|
||||
this.getCharSequence(false).toString()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private fun SimpleColoredComponent.getFirstText(): String? {
|
||||
return computeOnEdt {
|
||||
this.iterator().asSequence().joinToString()
|
||||
this.getCharSequence(true).toString()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user