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

Bug 279786

Summary: SWTException during TableDataEditor save.
Product: [Tools] Data Tools Reporter: Ivar Meikas <ivar>
Component: Table Data EditorAssignee: Brian Payton <bpayton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahti, bpayton, fulghum, hinaba
Version: unspecified   
Target Milestone: 1.7.2   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
TableDataEditor patch none

Description Ivar Meikas CLA 2009-06-10 07:41:23 EDT
Created attachment 138777 [details]
TableDataEditor patch

In TableDataEditor, when you create rows, change values there, remove the row and then save the editor, 
org.eclipse.swt.SWTException: Widget is disposed is thrown.

The problem lies in the doDelete() method, that doesn't remove dirty TableItems from internal set, and during save, call to revertToOriginalBackground() accesses a disposed TableItem.

I created a patch that will fix the issue.
Comment 1 Brian Payton CLA 2009-07-30 19:47:04 EDT
Hi Quy, can you evaluate the patch from Ivar?
Comment 2 Quy V. On CLA 2009-07-31 12:26:02 EDT
Hi Brian, 

The patch looks fine.
Comment 3 Ahti Kitsik CLA 2009-08-24 11:53:58 EDT
Hi, is this patch committed to HEAD or maybe even already released?
Comment 4 Ahti Kitsik CLA 2009-11-03 14:16:13 EST
Any update on this?
Comment 5 Jason Fulghum CLA 2009-11-20 01:51:14 EST
Any idea when this might make it into a future release?
Comment 6 Quy V. On CLA 2009-11-20 16:07:36 EST
Hi Brian,

Can you commit the patch? I have already reviewed it.  Thanks.
Comment 7 Brian Payton CLA 2009-12-07 19:44:22 EST
I applied the patch to the HEAD (1.7.2 and 1.8) code stream.  Tagged to v200912080845.  Also updated the plugin version to 1.1.2.qualifier.
Comment 8 Brian Payton CLA 2009-12-11 19:40:43 EST
Forgot to mark this as fixed.