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

Bug 345424

Summary: Replace uses of updateListener mechanism in JSWriter
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.4   
Target Milestone: 1.5 M1   
Hardware: All   
OS: iOS   
Whiteboard:

Description Ralf Sternberg CLA 2011-05-11 09:51:35 EDT
The JSWriter has a mechanism that directly connects client event handler functions with client events from the server side. This violates the separation of client and server and is not compatible with the new protocol (bug 311355).

The event wiring should now be done completely on the client. The server only needs to inform the client whether a listener is attached to a widget by synchronizing a "hasXxxListener" property.

In preparation of the protocol, we should rework those places that still use the old mechanism. This involves calls to these methods:
* JSWriter#addListener( ... )
* JSWriter#removeListener( ... )
* JSWriter#updateListener( ... )

and uses of these classes:
* JSListenerInfo
* JSListenerType

Since these methods and classes are public API, they should be kept functional and tested, but marked as deprecated and removed later.
Comment 1 Ivan Furnadjiev CLA 2011-06-22 08:25:53 EDT
These methods:

  •  JSWriter#addListener( ... )
	•  JSWriter#removeListener( ... )
	•  JSWriter#updateListener( ... )

and classes:

	•  JSListenerInfo
	•  JSListenerType
	
are no longer used in RWT and forms.