2012-08-31 93 views
0

如何找到SWTBotEclipseEditor.getText()方法的標題和工具提示文本給出了SWTBotEclipseEditor中的文本。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' 

請幫助

回答