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

Bug 413920

Summary: Widget is disposed exception on table when double click
Product: [RT] RAP Reporter: Marco Feldmann <riotsportcrew>
Component: JFaceAssignee: 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:
Description Flags
Example EntryPoint none

Description Marco Feldmann CLA 2013-07-29 09:48:51 EDT
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.
Comment 1 Marco Feldmann CLA 2013-07-29 09:49:13 EDT
see http://www.eclipse.org/forums/index.php/t/495787/
Comment 2 Ivan Furnadjiev CLA 2013-07-30 06:46:09 EDT
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.