Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353124 - [Table] shows empty rows after recreating its content
Summary: [Table] shows empty rows after recreating its content
Status: RESOLVED INVALID
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 10:57 EDT by Rüdiger Herrmann CLA
Modified: 2011-07-27 03:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-07-26 10:57:00 EDT
To reproduce:
* create a table with some columns and items
* in a subsequent request, execute the following code:
      while( table.getColumnCount() > 0 ) {
      table.getColumn( 0 ).dispose();
    }
    new TableColumn( table, SWT.NONE );
    table.getColumn( 0 ).setText( "column header" );
    while( table.getItemCount() > 0 ) {
      table.getItem( 0 ).dispose();
    }
    for( int i = 0; i < 11; i++ ) {
      TableItem tableItem = new TableItem( getTable(), SWT.NONE );
      tableItem.setText( "some text" );
    }  

-> on the client, the desired number of rows are created but neither the table column not the table rows show any text
Comment 1 Rüdiger Herrmann CLA 2011-07-26 11:07:22 EDT
This issue might be related to bug 313569
Comment 2 Ivan Furnadjiev CLA 2011-07-26 15:25:21 EDT
Rüdiger, I think that this bug is invalid as you create the new column (see snippet above) without setting the column width. If you set the column width everything is back to normal.
Comment 3 Rüdiger Herrmann CLA 2011-07-27 03:46:38 EDT
(In reply to comment #2)
> Rüdiger, I think that this bug is invalid as you create the new column (see
> snippet above) without setting the column width. If you set the column width
> everything is back to normal.
Hm, I think you have a point hrere ;)
Sorry for the noise, Ivan.