Opening an external editor from a Editor Descriptor [message #502482] |
Tue, 08 December 2009 13:50 |
Johnny Mongiat Messages: 7 Registered: December 2009 |
Junior Member |
|
|
Hello,
How can you open an external editor using a preselected EditorDescriptor? I'm trying to mimic the functionality that is supplied by the OpenWithMenu class (org.eclipse.ui.actions) which uses the following call:
((WorkbenchPage) page).openEditorFromDescriptor(new FileEditorInput(file), editor, true, null);
to open the given file using the user's external editor selection. The problem is that WorkbenchPage is an internal class, so it should be discouraged from referencing it from 3rd party client code (i.e. goes against eclipse best practices). However, I don't see anything in the public API that allows you to do this (I've tried the various openEditor(...) methods in the IWorkbenchPage, and IDE classes - but they just don't work like the afore-mentionned openEditorFromDescriptor(...) method).
Any thoughts?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03331 seconds