Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365705 - Changing Input of TableViewer fails with AssertionFailedException
Summary: Changing Input of TableViewer fails with AssertionFailedException
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrey Sablin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-06 06:37 EST by Christian Mohr CLA
Modified: 2021-06-04 16:45 EDT (History)
1 user (show)

See Also:


Attachments
A Testview showing the explained Errors (12.14 KB, application/x-zip-compressed)
2011-12-06 06:39 EST, Christian Mohr CLA
no flags Details
stacktrace of the explained Designer Error (2.16 KB, text/plain)
2011-12-06 06:42 EST, Christian Mohr CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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