| Summary: | Widget is disposed exception on table when double click | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Marco Feldmann <riotsportcrew> | ||||
| Component: | JFace | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ivan, riotsportcrew | ||||
| Version: | 2.1 | ||||||
| Target Milestone: | 2.2 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
When you double click on the last item (which will be removed), two events are sent from the client - widgetDefaultSelected and mouseDoubleClick. Mouse double click listener is notified on the server first and item is disposed. As a result, (default) selection listener is executed with already disposed item. Added a check for disposed item in StructuredViewer#handleDoubleSelect and AbstractTreeViewer#handleDoubleSelect. Fixed in master with commit 6a2bc86d24f42dbe89e147153b248ab68e3e6ffd. |
Created attachment 233887 [details] Example EntryPoint A org.eclipse.swt.SWTException was thrown when double click on the last element of a JFace table to remove item.