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

Bug 358372

Summary: ITable with injected columns cannot be re-built
Product: z_Archived Reporter: Ivan Motsch <ivan.motsch>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch that adds the new operation none

Description Ivan Motsch CLA 2011-09-21 04:29:33 EDT
When i use a table with injected (dynamic) columns it works all fine.
But when i try to change the list of injected columns, there is no way to re-load the table columns.

Discussion:
This is problematic, since if the table contains already some rows, what means removing columns and adding new ones?

Solution:
Added ITable.resetColumnConfiguration, see javadoc.
When reloading column config all existing rows are discarded and after loading the new columns the developer has to call reloadData() himself to re-fetch the table rows with the new column values.
Comment 1 Ivan Motsch CLA 2011-09-21 04:30:49 EDT
Created attachment 203736 [details]
Patch that adds the new operation
Comment 2 Ivan Motsch CLA 2011-09-21 04:55:29 EDT
Applied patch
Comment 3 Matthias Zimmermann CLA 2011-10-11 03:00:52 EDT
shipped with 3.7.1