Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to work on TableViewer in Swtbot
How to work on TableViewer in Swtbot [message #1524228] Tue, 23 December 2014 09:51 Go to next message
Shweta Dhumal is currently offline Shweta DhumalFriend
Messages: 5
Registered: November 2014
Junior Member
Hi All,

In my RCP application i have one TabItem inside View. And when we click on tabItem one TableViewer is getting open with some data.

I am trying to get the table viewer but it is not supported by SWTbot it seems.

I have used matchers also shown below but it is showing Bound Mismatch error.

List<TableViewer> findControls = viewByTitle.bot().getFinder().findControls(
WidgetMatcherFactory.widgetOfType(TableViewer.class));

I am stucked here.

Please help me by giving solution. Thank you in advance. I have attached screenshot of table viewer.
  • Attachment: Untitled.png
    (Size: 11.41KB, Downloaded 243 times)
Re: How to work on TableViewer in Swtbot [message #1525753 is a reply to message #1524228] Wed, 24 December 2014 06:22 Go to previous messageGo to next message
Shweta Dhumal is currently offline Shweta DhumalFriend
Messages: 5
Registered: November 2014
Junior Member
any reply plssss
Re: How to work on TableViewer in Swtbot [message #1547300 is a reply to message #1525753] Mon, 05 January 2015 10:45 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

SWTBot interacts with the SWT layer. TableViewer is a JFace MVC
construct on top of a SWT Table. So you can simply use a SWTBotTable and
bot.table().

HTH
Re: How to work on TableViewer in Swtbot [message #1559968 is a reply to message #1547300] Mon, 12 January 2015 10:03 Go to previous message
Shweta Dhumal is currently offline Shweta DhumalFriend
Messages: 5
Registered: November 2014
Junior Member
Hi Mickael
Thank you for the reply. But I am not getting Table using bot().Table;

I have tried using matchers too but it dint helped me out.
Previous Topic:select 2 nodes of tree SWTbot
Next Topic:Problems Description too short
Goto Forum:
  


Current Time: Fri Apr 26 04:46:38 GMT 2024

Powered by FUDForum. Page generated in 0.03041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top