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

Bug 332426

Summary: Event.data not added in typed events' constructors
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 1.4 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Ralf Sternberg CLA 2010-12-13 06:34:31 EST
Reproduce:
Event event	= new Event();
event.data = ...
notifyListeners( SWT.MouseDown, event );

Typed listeners will get null event.data. See also bug 331082 (fixed for SelectionEvent). This issue seems to exist for other typed events as well. I think the correct solution is to call super( Event ) in the ( Event )-constructors of all typed events.
Comment 1 Ivan Furnadjiev CLA 2010-12-13 08:36:45 EST
Fixed in CVS HEAD.