SWTBotTreeItem.getTooltipText [message #1756064] |
Fri, 10 March 2017 08:52  |
Eclipse User |
|
|
|
Have you tried getTooltipText for SWTBotTreeItem or SWTBotTableItem?
It returns "" for me. I looked into the code. I thought that it would return "" for any TreeItem, TableItem and similar objects that occur within specific controls.
SWT's TreeItem has swt.widgets.Widget as baseclass which does not provide getToolTipText() method. So AbstractSWTBot.getToolTipText() when calls ReflectionInvoker's run() method for TreeItem, it throws NoSuchMethodException and hence returns "".
The application can use jface's CellLabelProvider to provide tooltip. It may not be possible for swtbot to access those things but returning "" also can mislead.
Am I correct or am I missing something? Please share your thoughts.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05385 seconds