Skip to main content
Jump to: navigation, search

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

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.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.