public SWTBotToolbarButtonWithToolTip toolbarButton(String tooltip) throws WidgetNotFoundException {
List l = getToolbarButtons();
for (int i = 0; i < l.size(); i++) {
SWTBotToolbarButtonWithToolTip item = (SWTBotToolbarButtonWithToolTip) l.get(i);
if (item.getToolTipText().equals(tooltip)) {
return item;
}
}
throw new WidgetNotFoundException("Unable to find toolitem with the given tooltip '" + tooltip + "'");