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

Bug 386833

Summary: [Clientscripting] Support Paint event on Canvas
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: IncubatorAssignee: Project Inbox <rap.incubator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: tbuschto
Version: 1.5   
Target Milestone: 2.0 M2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 387034    
Bug Blocks:    

Description Tim Buschtoens CLA 2012-08-08 09:05:13 EDT
ClientScripting should support the SWT.Paint event at least on Canvas. Other controls if possible. The GC field of the event will have a subset of the HTML5 canvas-gc API, NOT the SWT canvas-gc API.
Comment 1 Tim Buschtoens CLA 2012-08-11 05:55:16 EDT
Added basic paint event with commit f9fb389cdb59e1a976013e83aa33414c1a69589a.
Bug stays open until issues related to Bug 387034 are closed.
Comment 2 Tim Buschtoens CLA 2012-08-13 13:38:24 EDT
With commit 379b782ef8e5b49386d121e7e26749211ec5d0ed the server-side GC is re-used. However, this is not working with 1.5.0. The GC is now also initialized with the widgets colors and font. 

Another issue that has to be resolved is that a server-side paint event has to also trigger the client-side listener. Currently only a client-side call to "redraw" on the widget-proxy triggers the client-side paint listener.
Comment 3 Tim Buschtoens CLA 2012-08-14 09:47:58 EDT
With commit e63ffd0f3e6ed99297fb6656f1be52ec69c1d516 paint events are triggered via the "init" function on GC, called by the server.

However, this is still not working with 1.5.0. Bug stays open until this is somehow fixed.
Comment 4 Tim Buschtoens CLA 2012-08-23 11:04:21 EDT
1.5 is fully supported with commit e9c60af75ff686a2cf36ab9e51f31e06d765a4ea.