title: Display ViewPart in eclipse
body: <p>I am currently developing an eclipse plugin which displays DOT-Graphs. For this purpose I make use of <a href="http://wiki.eclipse.org/Zest#Graphviz_DOT_support" rel="nofollow">this</a> plugin. However, I have no idea how to actually display the graph which I built. I want to display it in the middle of the eclipse window as an Editor. </p>
  
  <p>To get this done I created a custom Editor class which needs some code in its createPartControl(Composite) code in order to make use of the DotGraphView which is provided by the plugin. </p>
  
  <p>The question is, how can I display this DotGraphView? 
  
  The code of my Editor looks like this:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Override
  public void createPartControl(Composite container) {
      DotImport importer = new DotImport(TEST_GRAPH);
      Graph graph = importer.newGraphInstance();
      DotGraphView dotGraphView = new DotGraphView();
      dotGraphView.setGraph(graph);
  
      // add dotGraphView as a child to container and display it
      // What todo here?
  }
  </code></pre>