Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 394088

Summary: [Controls Demo] Update virtual items with Jobs is broken
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan Furnadjiev CLA 2012-11-12 07:52:25 EST
Start Controls Demo -> Table Tab. Check VIRTUAL and "Update virtual items delayed". Change "ItemCount" to 200 -> scrollbars are updated but not the items. Start scrolling with the mouse -> "..." items appear on the bottom. Probably related to UICallBack rework.
Comment 1 Ivan Furnadjiev CLA 2012-11-12 07:56:38 EST
More over if you navigate away from the Table tab after this weird behavior you got:
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3546)
	at org.eclipse.swt.SWT.error(SWT.java:3469)
	at org.eclipse.swt.SWT.error(SWT.java:3440)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:1023)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:965)
	at org.eclipse.swt.widgets.TableItem.getParent(TableItem.java:228)
	at org.eclipse.rap.demo.controls.TableTab.updateItem(TableTab.java:289)
	at org.eclipse.rap.demo.controls.TableTab.access$1(TableTab.java:288)
	at org.eclipse.rap.demo.controls.TableTab$2$1$1.run(TableTab.java:149)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:38)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:179)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1130)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1117)
	at org.eclipse.rap.demo.controls.ControlsDemo.createUI(ControlsDemo.java:55)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:186)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:298)
	at java.lang.Thread.run(Unknown Source)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
Comment 2 Ivan Furnadjiev CLA 2012-11-12 08:11:57 EST
Change the component to Demo. When using Jobs without the workbench (JobManagerAdapter) we need to activate/deactivate the UICallBack ourselfs.
Comment 3 Ivan Furnadjiev CLA 2012-11-12 08:17:05 EST
Same issue exists in Tree Tab.
Comment 4 Ivan Furnadjiev CLA 2012-11-12 09:33:30 EST
Fixed with commit 266903170b44f3265c35af0e880d2a02c2fa6e3b.