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

Bug 351945

Summary: Migrate widget LCAs to write JSON responses
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: tbuschto
Version: 1.5   
Target Milestone: 1.5 M4   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 355700, 360121    
Bug Blocks: 355726    

Description Holger Staudacher CLA 2011-07-13 06:58:47 EDT
With the introduction of the new protocol we need to migrate all widgets to use the new messages instead of JavaScript for communication. I think we can just say that the protocol is finished when all widgets has been migrated.
Comment 1 Tim Buschtoens CLA 2011-08-12 13:26:25 EDT
Shell should now be completely controlled by protocol messages in HEAD. (The requests to the server are unchanged.)
Comment 2 Tim Buschtoens CLA 2011-08-16 07:10:45 EDT
Switched Composite to use protocol. The same commit also contains some changes to ClientObject that were necessary for Composite. The "create" method now takes the type of the object as a parameter instead of the widget itself. This is because Composite might be sublcassed, in which case widget.getClass().getName() would return an type unkown to the client. As a result of theese changes the constructor of ClientObject now take the targetId as a parameter and the parent is now longer set automatically. 

With these changes ClinetObject becomes indpendent from widget and can be better used with non-widget objects.
Comment 3 Ivan Furnadjiev CLA 2011-08-30 10:39:22 EDT
Some additional changes made:
- Changed color protocol format from String to Array.
- Created a client-side Display object to handle global functionality like allow/cancel key event.
- Renamed object type names.
Comment 4 Ivan Furnadjiev CLA 2011-09-01 03:36:44 EDT
Switched Button completely to use protocol.
Comment 5 Ivan Furnadjiev CLA 2011-09-01 07:07:46 EDT
Switched Label (including SEPARATOR) completely to use the protocol.
Comment 6 Ivan Furnadjiev CLA 2011-09-05 08:36:56 EDT
Switched Text widget (including SINGLE, MULTI and SEPARATOR) completely to use the protocol.
Comment 7 Ivan Furnadjiev CLA 2011-09-08 11:27:08 EDT
Combo/CCombo are completely switched to the protocol.
Comment 8 Ivan Furnadjiev CLA 2011-09-09 07:38:56 EDT
Spinner are completely switched to the protocol.
Comment 9 Ivan Furnadjiev CLA 2011-09-09 09:56:45 EDT
Group is completely switched to the protocol.
Comment 10 Ivan Furnadjiev CLA 2011-09-12 04:15:26 EDT
Switched Scale completely to the protocol.
Comment 11 Ivan Furnadjiev CLA 2011-09-12 07:59:48 EDT
Switched Slider completely to the protocol.
Comment 12 Ivan Furnadjiev CLA 2011-09-14 04:37:59 EDT
Switched CLabel completely to the protocol.
Comment 13 Ivan Furnadjiev CLA 2011-09-14 11:35:57 EDT
Switched Link completely to the protocol.
Comment 14 Ivan Furnadjiev CLA 2011-09-15 05:05:20 EDT
Switched Sash completely to the protocol.
Comment 15 Ivan Furnadjiev CLA 2011-09-16 07:49:47 EDT
Switched ProgressBar completely to the protocol.
Comment 16 Ivan Furnadjiev CLA 2011-09-27 12:23:16 EDT
Introduced new static methods in WidgetLCAUtil - preserveProperty, preserveListener, renderProperty, renderListener. All protocol-based LCAs are using these new methods now.
Comment 17 Ivan Furnadjiev CLA 2011-09-30 06:41:43 EDT
Switched ScrolledComposite completely to the protocol.
Comment 18 Ivan Furnadjiev CLA 2011-10-04 14:09:46 EDT
Switched TabFolder to the protocol.
Comment 19 Ivan Furnadjiev CLA 2011-10-08 03:26:30 EDT
Switched ToolBar/ToolItem to the protocol.
Comment 20 Ivan Furnadjiev CLA 2011-10-25 09:43:25 EDT
Switched TreeLCA and TreeItemLCA to the protocol. Moved client-side widget id handling and registration callback to ObjectManager.js.
Comment 21 Ivan Furnadjiev CLA 2011-10-27 03:46:04 EDT
Switched TreeColumnLCA to the protocol. With this change the Tree widget is completely controlled by the protocol.
Comment 22 Ivan Furnadjiev CLA 2011-11-11 09:41:13 EST
Switched DateTime to the protocol.
Comment 23 Ivan Furnadjiev CLA 2011-11-15 06:22:42 EST
Switched UICallBack to the protocol. The ProtocolMessageWriter now have a method appendMeta. Request counter is added to the meta from DisplayLCA#renderRequestCounter. The UICallBack service handler requests does not rendered the request counter. All UICallBack related code on the client have been extracted in a dedicated UICallBack.js.
Comment 24 Ivan Furnadjiev CLA 2011-11-18 11:12:53 EST
Switched Table, TableItem and TableColumn to the protocol.
Comment 25 Ivan Furnadjiev CLA 2011-11-24 12:15:05 EST
Switched List to the protocol.
Comment 26 Ivan Furnadjiev CLA 2011-11-28 11:54:16 EST
Switched Menu to the protocol.
Comment 27 Tim Buschtoens CLA 2011-12-02 12:52:57 EST
Switched Canvas (including GC) and CoolBar (excluding CoolItem) to protocol
Comment 28 Ivan Furnadjiev CLA 2011-12-03 08:21:52 EST
Switched CTabFolder/CTabItem to the protocol.
Comment 29 Ivan Furnadjiev CLA 2011-12-03 15:25:40 EST
Changed TabFolder to render the selected item instead of selection index. Thus, selection rendering is more consistence between widgets (Tree, CTabFolder...). Client side code is cleaner too.
Comment 30 Ivan Furnadjiev CLA 2011-12-04 10:23:52 EST
Switched ToolTip to the protocol.
Comment 31 Ivan Furnadjiev CLA 2011-12-05 04:35:08 EST
Switched FileUpload to the protocol.
Comment 32 Ivan Furnadjiev CLA 2011-12-06 08:42:07 EST
Switched ExpandBar/ExpandItem to the protocol.
Comment 33 Ivan Furnadjiev CLA 2011-12-07 03:59:31 EST
Switched ControlDecorator to the protocol.
Comment 34 Ivan Furnadjiev CLA 2011-12-07 10:09:02 EST
Switched ExternalBrowser to the protocol.
Comment 35 Tim Buschtoens CLA 2011-12-14 09:52:53 EST
Switched Drag And Drop (DragSource and DropTarget) to Protocol
Comment 36 Ivan Furnadjiev CLA 2011-12-15 01:05:06 EST
Switched BrowserFunction to protocol.
Comment 37 Ivan Furnadjiev CLA 2011-12-19 13:42:44 EST
All LCA's have been switched to the protocol. I will close this bug as resolved.