| Summary: | Event.data lost when use event object to construct a SelectionEvent object | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | flashcloud <flashcloud163> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P2 | ||||||
| Version: | 1.3 | ||||||
| Target Milestone: | 1.4 M4 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Yes... Looks like a bug. Created attachment 183834 [details]
Without the prior fixes, can only do so temporarily
Fixed in CVS HEAD. |
code e.g: public class ExtendComponent extends Composite { ... public void select(){ ... // Send selection event to the listeners Event event = new Event(); event.data = myObject; notifyListeners(SWT.Selection, event); } ... } myObject lost in Listener of Selection!! in org.eclipse.swt.events.SelectionEvent: public SelectionEvent( final Event e ) { this( e.widget, e.item, e.type, new Rectangle( e.x, e.y, e.width, e.height ), e.stateMask, e.text, e.doit, e.detail ); } no e.data!! it`s a bug?