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

Bug 365705

Summary: Changing Input of TableViewer fails with AssertionFailedException
Product: z_Archived Reporter: Christian Mohr <christian.mohr>
Component: WindowBuilderAssignee: Andrey Sablin <sablin.andrey>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: clayberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
A Testview showing the explained Errors
none
stacktrace of the explained Designer Error none

Description Christian Mohr CLA 2011-12-06 06:37:02 EST
Build Identifier: 20110615-0604

I am using databinding to bind a model to a tableviewer. When iam changing the input object i receive an "assertion failed: Getter called on disposed observable" message. 
This seems to be similar to 
http://www.eclipse.org/forums/index.php/t/6747/
and 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283428

I am able to fix this by changing the order of adding the Content- and LabelProvider in the generated Code (1. Labelprovider, 2. ContentProvider). But then the Designer is unable to parse the code with following stacktrace: 



Reproducible: Always

Steps to Reproduce:
1. Create a testclass with a list of subclasses
2. bind the list of subclasses to a tableview
3. dispose DataBindingContext
4. change testclass
5. initDataBindings() => error
Comment 1 Christian Mohr CLA 2011-12-06 06:39:39 EST
Created attachment 207970 [details]
A Testview showing the explained Errors
Comment 2 Christian Mohr CLA 2011-12-06 06:42:20 EST
Created attachment 207971 [details]
stacktrace of the explained Designer Error
Comment 3 Andrey Sablin CLA 2011-12-12 13:40:30 EST
Fixed in trunk.
Comment 4 Eric Clayberg CLA 2011-12-29 15:07:27 EST
Fixed