SWTBotEclipseEditor title and tooltip text
-
29-06-2021 - |
Pregunta
how to find the title and tooltip text of SWTBotEclipseEditor.getText() method gives the text inside SWTBotEclipseEditor.
SWTBotEclipseEditor editor = bot.editorByTitle("testFoo.txt").toTextEditor();
String title = editor.??? //I want title which is testFoo.txt
String toolTip = editor.getToolTipText(); //not giving 'tooltip text'
please help
Solución
As a workaround,I used editor.getReference().getTitle()
or
editor.getReference().getTitleToolTip()
.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow