SWTBotEclipseEditor标题和工具提示文本

时间:2012-08-31 11:29:15

标签: eclipse junit eclipse-plugin swtbot

如何查找SWTBotEclipseEditor.getText()方法的标题和工具提示文本,在SWTBotEclipseEditor中提供文本。

enter image description here

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'

请帮助

1 个答案:

答案 0 :(得分:0)

作为解决方法,我使用editor.getReference().getTitle()editor.getReference().getTitleToolTip()

http://www.eclipse.org/forums/index.php/t/373784/