Currently it is very difficult to deal with CTabItems as they seem to return "false" from the isVisible() method. The result of this is that trying to use WidgetTextMatcher to find any CTabItem in the widget hierarchy requires using "false" for the visible argument of the WidgetTextMatcher constructor, which is confusing to say the least. Dealing with CTabItems properly is essential to working with with views and multi-page editors, which makes the lack of a CTabItemTester noticeably debilitating.
Potentially useful methods for CTabItemTester might be:
boolean isShowing(CTabItem item)
void show(CTabItem item)
void select(CTabItem item) /* shows, then selects the item by clicking it */
String getText(CTabItem item)
String getToolTipText(CTabItem item)
CTabFolder getParent(CTabItem item) /* perhaps useful for iterating over or finding other CTabItems in the same folder */
Ideally, once this Tester were implemented, WidgetTextMatcher (and any other Matchers which support a boolean "visible" argument) would be able to find CTabItems without requiring a "false" value for the visible argument.
Since a CTabItemTester is current not available you have to do the following just to find a CTabItem:
CTabItem item = (CTabItem) WidgetFinderImpl.getFinder().find(WorkbenchUtil.getActiveShell(), new WidgetText2Matcher(tabText, CTabItem.class, false));
This is a very good idea Justin.