Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Testing ElementListSelectionDialog
Testing ElementListSelectionDialog [message #548333] Wed, 21 July 2010 10:10 Go to next message
Uki  is currently offline Uki
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 07:32 Go to previous messageGo to next message
budili Missing name is currently offline budili Missing name
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 07:59 Go to previous message
Uki  is currently offline Uki
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: Sat Apr 19 00:40:36 EDT 2014

Powered by FUDForum. Page generated in 0.01714 seconds