Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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.)

(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.

Back to the top