Getting errormarkers of xtext editor [message #1792945] |
Thu, 26 July 2018 04:46  |
Eclipse User |
|
|
|
Hi anybode,
I want to implement a test, which checks if there are bullets available in the editor. I have done it this way:
SWTBotEclipseEditor textEditor = swtBot.activeEditor().toTextEditor();
for (int currentLine = 0; currentLine < textEditor.getLineCount(); currentLine++) {
if (textEditor.hasBulletOnLine(currentLine))
errorMarkers.add("Line " + currentLine + ":" + textEditor.getBulletOnLine(currentLine).text);
}
But although I see error markers in different lines in real, swtbot does not detect them. So my question:
- Are the bullets really the error markers you see in the editor?
- Did I implement something incorrectly or do I have another option to get to this information?
Thanks in advance
Cheers
Markus
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03777 seconds