Talk:FAQ How do I open an editor on something that is not a file?
Revision as of 16:16, 27 May 2009 by Egon.willighagen.gmail.com (Talk | contribs) (Rationale of my change a bit earlier.)
Updated the page, because it was not working for me with Eclipse 3.4.2... the problem was that I got a core.runtime.CoreException
"Text editor does not have a document provider"
originating from:
org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:3988)
When aligning the code with that from:
http://blog.eclipse-tips.com/2008/06/opening-editor-without-ifile.html
which does not extent the PlatformObject, and implemented the getAdapter() method itself...
That made the code work for Eclipse' TextEditor and a local JavaScript editor of Bioclipse.