Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with VirtualTable?
Problem with VirtualTable? [message #547866] Mon, 19 July 2010 22:09 Go to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
Very occasionally I find that the VirtualTable cannot find the item passed into the setData event notification. See my code below - it results in rowNum being set to -1. Does this sound like a bug in VirtualTable or am I using the API incorrectly?
Thanks


virtualTable.addListener(SWT.SetData, new Listener() {
	public void handleEvent(Event event) {
		TableItem item = (TableItem) event.item;
		int rowNum = virtualTable.indexOf(item);

		// rowNum is now -1 ?????????
	}
}
Re: Problem with VirtualTable? [message #547901 is a reply to message #547866] Tue, 20 July 2010 06:48 Go to previous messageGo to next message
Praveen Missing name is currently offline Praveen Missing nameFriend
Messages: 6
Registered: July 2009
Junior Member
The posted code excerpt does not show any problem - it should return the
correct row number.
If you can reproduce the problem scenario, or filter out the scenarios
where incorrect rowNum is returned, then please report a bug with the
reproducible steps.
Re: Problem with VirtualTable? [message #549146 is a reply to message #547866] Sun, 25 July 2010 10:48 Go to previous message
No real name is currently offline No real nameFriend
Messages: 1
Registered: July 2010
Junior Member
I have found some similar behaviour and filed a bug (320838).

Best regards,
Jo
Previous Topic:SWT mouse event problem
Next Topic:StyledText widget redesign
Goto Forum:
  


Current Time: Fri Apr 26 06:24:31 GMT 2024

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

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

Back to the top