title: How can I put an IEditorPart in a modal dialog?
body: <p>(I'm something of an Eclipse newbie, so apologise for any dumbness on my part...)</p>
  
  <p>I have a number of editors (derived from <code>IEditorPart</code>) in my RCP app, and a requirement has arisen that one particular editor needs to be also available in a modal dialog box (along with some extra controls) opened by one of the other editor classes. The editor to be embedded consists of the main viewer control, toolbar, and a couple of dozen helper classes (label providers, comparators, etc).</p>
  
  <p>The options before me appear to be:</p>
  
  <ol>
  <li><p>Find a way to put an editor area, <code>IWorkbenchWindow</code>-style, into a (JFace or SWT) <code>Dialog</code>.</p>
  
  <ul>
  <li>Not had much luck searching for how to do this</li>
  </ul></li>
  <li><p>Create a new <code>WorkBenchWindow</code> with a Perspective that just the editor area visible, and no views. Make this modal.</p>
  
  <ul>
  <li>On trying this, the new window seemed to inherit things (menus etc) from its parent window.</li>
  </ul></li>
  <li><p>Refactor the editor in question so all of it now resides on a single control, then embed this control in both the editor and the dialog.</p>
  
  <ul>
  <li>Potentially time-consuming, given the number of places the helper classes refer back to the main editor object.</li>
  </ul></li>
  </ol>
  
  <p>If it turns out that this is a truly perverse and anti-idiomatic thing to want to do, in Eclipse terms, can you suggest a wiser course of action?</p>
  
  <p>Thanks</p>