Community
Participate
Working Groups
When you insert a text, the selection and the caret position should be moved after the inserted text. Test case: public void testSelectionAfterInsertText() { Text text = new Text( shell, SWT.NONE ); text.setText( "foobar" ); text.setSelection( 3 ); text.insert( "xxx" ); assertEquals( new Point( 6, 6 ), text.getSelection() ); }
Set the selection in Text#insert. Changes are in CVS HEAD.