errtu
errtu

Reputation: 33

How to programatically detach editor in Eclipse Juno?

In my RCP application, I am able to open an editor in Eclipse 4.2 (Juno), but I would like it to open in a separate window by default (that is, to be detached). I don't want to be forced to manually drag and drop it outside the main workbench window.

I wander around classes like IEditorPart, WorkbenchWindow, WorkbenchPage, IViewSite etc. but no luck so far.

Actually, it would be great to be able to embed editor into some dialog window from org.eclipse.jface.dialogs. But I don't think it's possible, as windows (as much as views) and Editors don't go well together.

Upvotes: 2

Views: 1275

Answers (1)

pbanfi
pbanfi

Reputation: 1885

try looking here

there is an example concerning views but I thik that it can be adapter to your needs

Upvotes: 2

Related Questions