title: How to force StyledText to break line in SWT
body: <p>I'm trying to force the <code>StyledText</code> to breake the line but the effects are hopeless. Instead, it extends size of my shell to width of biggest line.</p>
  
  <p>I am trying to achieve that by creating class which extends shell</p>
  
  <p>My constructor</p>
  
  <pre><code>    super(SWT.ON_TOP | SWT.NO_TRIM | SWT.NO_FOCUS | SWT.NO_SCROLL);
      FillLayout layout = new FillLayout();
      layout.marginHeight = 1;
      layout.marginWidth = 1;
      setLayout(layout);
  
      mForm = new ManagedForm(this);
      FormToolkit toolkit = mForm.getToolkit();
      body = mForm.getForm().getBody();
  
      FillLayout layout2 = new FillLayout();
      layout2.spacing = 2;
      body.setLayout(layout2);
  
      body = toolkit.createComposite(body, SWT.BORDER );
  </code></pre>
  
  <p>And when I want insert and show text. I am do this like that</p>
  
  <pre><code>    String text = 
      body = mForm.getToolkit().createComposite(parent, SWT.BORDER);
      GridLayout l = new GridLayout();
      l.marginHeight = 0;
      l.marginWidth = 1;
  
      body.setLayout(l);  
  
      StyledText bodyText = createDisabledText(body, text);
  
      mForm.getForm().getContent().pack(); 
      mForm.getForm().reflow(true);
      pack();
  
     setVisible(true);
  </code></pre>
  
  <p>and my create disabledText:</p>
  
  <pre><code>private StyledText createDisabledText(Composite parent, String value)
  {
      StyledText t = new StyledText(parent, SWT.SHADOW_NONE);
      t.setText(value);
      t.setEditable(false);
      t.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
      return t;
  }
  </code></pre>
  
  <p>All is in class which extends shell.
  What I am doing wrong or is there method like set maxSize?</p>