Buggy code:
public class Snippet331 { static String text = "The<seq2seq4repair_space>first<seq2seq4repair_space>paragraph<seq2seq4repair_space>has<seq2seq4repair_space>an<seq2seq4repair_space>indentation<seq2seq4repair_space>of<seq2seq4repair_space>fifty<seq2seq4repair_space>pixels<seq2seq4repair_space>and<seq2seq4repair_space>zero<seq2seq4repair_space>indentation<seq2seq4repair_space>for<seq2seq4repair_space>wrapped<seq2seq4repair_space>lines.<seq2seq4repair_space>If<seq2seq4repair_space>this<seq2seq4repair_space>paragraph<seq2seq4repair_space>wraps<seq2seq4repair_space>to<seq2seq4repair_space>several<seq2seq4repair_space>lines<seq2seq4repair_space>you<seq2seq4repair_space>will<seq2seq4repair_space>see<seq2seq4repair_space>the<seq2seq4repair_space>indentation<seq2seq4repair_space>only<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>first<seq2seq4repair_space>line.\n\n" + ( ( ( "The<seq2seq4repair_space>second<seq2seq4repair_space>paragraph<seq2seq4repair_space>has<seq2seq4repair_space>an<seq2seq4repair_space>indentation<seq2seq4repair_space>of<seq2seq4repair_space>fifty<seq2seq4repair_space>pixels<seq2seq4repair_space>for<seq2seq4repair_space>all<seq2seq4repair_space>lines<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>paragraph.<seq2seq4repair_space>Visually<seq2seq4repair_space>this<seq2seq4repair_space>paragraph<seq2seq4repair_space>has<seq2seq4repair_space>a<seq2seq4repair_space>fifty<seq2seq4repair_space>pixels<seq2seq4repair_space>left<seq2seq4repair_space>margin.\n\n" + "The<seq2seq4repair_space>third<seq2seq4repair_space>paragraph<seq2seq4repair_space>has<seq2seq4repair_space>wrap<seq2seq4repair_space>indentation<seq2seq4repair_space>of<seq2seq4repair_space>fifty<seq2seq4repair_space>pixels<seq2seq4repair_space>and<seq2seq4repair_space>zero<seq2seq4repair_space>indentation<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>first<seq2seq4repair_space>line.<seq2seq4repair_space>If<seq2seq4repair_space>this<seq2seq4repair_space>paragraph<seq2seq4repair_space>wraps<seq2seq4repair_space>to<seq2seq4repair_space>several<seq2seq4repair_space>lines<seq2seq4repair_space>you<seq2seq4repair_space>should<seq2seq4repair_space>see<seq2seq4repair_space>the<seq2seq4repair_space>indentation<seq2seq4repair_space>for<seq2seq4repair_space>all<seq2seq4repair_space>the<seq2seq4repair_space>lines<seq2seq4repair_space>but<seq2seq4repair_space>the<seq2seq4repair_space>first.\n\n" ) + "This<seq2seq4repair_space>paragraph<seq2seq4repair_space>start<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>bullet<seq2seq4repair_space>and<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>any<seq2seq4repair_space>kind<seq2seq4repair_space>of<seq2seq4repair_space>indentation.<seq2seq4repair_space>If<seq2seq4repair_space>this<seq2seq4repair_space>paragraph<seq2seq4repair_space>wraps<seq2seq4repair_space>to<seq2seq4repair_space>several<seq2seq4repair_space>lines,<seq2seq4repair_space>the<seq2seq4repair_space>wrapped<seq2seq4repair_space>lines<seq2seq4repair_space>will<seq2seq4repair_space>start<seq2seq4repair_space>a<seq2seq4repair_space>lead<seq2seq4repair_space>edge<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>editor.\n\n" ) + "This<seq2seq4repair_space>paragraph<seq2seq4repair_space>start<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>bullet<seq2seq4repair_space>and<seq2seq4repair_space>has<seq2seq4repair_space>wrap<seq2seq4repair_space>indentation<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>same<seq2seq4repair_space>width<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>bullet.<seq2seq4repair_space>If<seq2seq4repair_space>this<seq2seq4repair_space>paragraph<seq2seq4repair_space>wraps<seq2seq4repair_space>to<seq2seq4repair_space>several<seq2seq4repair_space>lines,<seq2seq4repair_space>all<seq2seq4repair_space>the<seq2seq4repair_space>wrapped<seq2seq4repair_space>lines<seq2seq4repair_space>will<seq2seq4repair_space>line<seq2seq4repair_space>up<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>first<seq2seq4repair_space>one." ) ; public static void main ( String [ ] args ) { Display display = new Display ( ) ; Shell shell = new Shell ( display ) ; shell . setLayout ( new FillLayout ( ) ) ; StyledText styledText = new StyledText ( shell , ( ( SWT . WRAP ) | ( SWT . BORDER ) ) ) ; styledText . setText ( Snippet331 . text ) ; styledText . setLineIndent ( 0 , 1 , 50 ) ; styledText . setLineIndent ( 2 , 1 , 50 ) ; styledText . setLineWrapIndent ( 2 , 1 , 50 ) ; styledText . setLineWrapIndent ( 4 , 1 , 50 ) ; StyleRange style = new StyleRange ( ) ; style . metrics = new GlyphMetrics ( 0 , 0 , 50 ) ; Bullet bullet = new Bullet ( style ) ; styledText . setLineBullet ( 6 , 1 , bullet ) ; styledText . setLineBullet ( 8 , 1 , bullet ) ; styledText . setLineWrapIndent ( 8 , 1 , 50 ) ; <START_BUG> shell . setSize ( 300 , 500 ) ; <END_BUG> shell . open ( ) ; while ( ! ( shell . isDisposed ( ) ) ) { if ( ! ( display . readAndDispatch ( ) ) ) display . sleep ( ) ; } display . dispose ( ) ; } }

Fix:
shell . setSize ( 350 , 550 ) ;