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

Bug 353124

Summary: [Table] shows empty rows after recreating its content
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.