title: Create a toolbar within the Eclipse text editor
body: <p>I have an Eclipse plugin in which <strong>I need a toolbar within the text editor as like the toggle breadcrumb view</strong>. Is there any generic utility class in Eclipse that allows me to do this?</p>
  
  <pre><code>@Override
  protected ISourceViewer createSourceViewer(Composite parent,
                                             IVerticalRuler ruler, 
                                             int styles)
  {
      composite = new Composite(parent, SWT.NONE);
      GridLayout gridLayout = new GridLayout(1, true);
      gridLayout.numColumns = 1;
      gridLayout.marginHeight = 0;
      gridLayout.marginWidth = 0;
      composite.setLayout(gridLayout);
  
      ToolBar toolBar = new ToolBar(composite, SWT.FLAT);
      GridData gridData = new GridData(GridData.FILL, SWT.TOP, true, false);
      toolBar.setLayoutData(gridData);
      toolBarManager = new ToolBarManager(toolBar);
  
      return super.createSourceViewer(composite, ruler, styles);
  }
  </code></pre>