Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358372 - ITable with injected columns cannot be re-built
Summary: ITable with injected columns cannot be re-built
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 04:29 EDT by Ivan Motsch CLA
Modified: 2021-08-19 11:06 EDT (History)
1 user (show)

See Also:


Attachments
Patch that adds the new operation (6.42 KB, patch)
2011-09-21 04:30 EDT, Ivan Motsch CLA
no flags Details | Diff

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