Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Testing ElementListSelectionDialog
Testing ElementListSelectionDialog [message #548333] Wed, 21 July 2010 14:10 Go to next message
Uki  is currently offline Uki Friend
Messages: 3
Registered: July 2010
Junior Member
Hi!
Is there any way to select the item on ElementListSelectionDialog?
I've tried this code:
final FilteredList list = bot.widget(widgetOfType(FilteredList.class));
    	UIThreadRunnable.syncExec(new VoidResult(){
    		public void run() {
			 list.setSelection(new int[] {0});	 	
		 }
    	});


and this

final FilteredList list = bot.widget(widgetOfType(FilteredList.class));
list.setSelection(new int[] {0});


The filtered list from dialog seems to be found successfully but the setSelection method doesn't work.

Thanks,
Łukasz
Re: Testing ElementListSelectionDialog [message #548569 is a reply to message #548333] Thu, 22 July 2010 11:32 Go to previous messageGo to next message
budili Missing name is currently offline budili Missing nameFriend
Messages: 64
Registered: May 2010
Member

In an ElementListSelectionDialog you could select items about:

bot.table.select(index integer);
Re: Testing ElementListSelectionDialog [message #548577 is a reply to message #548569] Thu, 22 July 2010 11:59 Go to previous message
Uki  is currently offline Uki Friend
Messages: 3
Registered: July 2010
Junior Member
Brilliant, it works!!!

Thank you budili
Previous Topic:CheckedTreeViewer Selection
Next Topic:Notification is made twice with CCombo
Goto Forum:
  


Current Time: Fri Apr 26 08:13:30 GMT 2024

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

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

Back to the top