Community
Participate
Working Groups
Inserting a column into a Table must shift all cell properties after the insert position. The following test works with SWT but fails in RAP: public void testInsertColumn() { Table table = new Table( shell, SWT.BORDER ); for( int i = 0; i < 3; i++ ) { new TableColumn( table, SWT.NONE ); } final TableItem item = new TableItem( table, SWT.NONE ); for( int i = 0; i < 3; i++ ) { item.setText( i, "cell" + i ); } new TableColumn( table, SWT.NONE, 1 ); assertEquals( "cell0", item.getText( 0 ) ); assertEquals( "", item.getText( 1 ) ); assertEquals( "cell1", item.getText( 2 ) ); assertEquals( "cell2", item.getText( 3 ) ); } Should also be tested with all other cell properties like images, fonts, colors etc. Tree seems to behave correctly.
Now, when a new column is inserted the item data are shifted is needed. JUnit tests added for all data properties. Changes are in CVS HEAD.