Jump to: navigation, search

Talk:FAQ How do I open an editor on something that is not a file?

Revision as of 15:16, 27 May 2009 by Egon.willighagen.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.