Editor - Document Provider error [message #326324] |
Fri, 14 March 2008 15:51 |
Eclipse User |
|
|
|
Originally posted by: marcio.debarros.gmail.com
Hi,
I have an editor class that extends from MultiPage editor (right now all
subpages are TextEditors), in the same plug-in/perspective I also have
two separate views, one which is a custom view based on a TreeView,
which has different level of nodes, and then an object that implements
IEditorInput. The other is an extension of the CNF.
In both views expect to double click on an object, open the editor and
load the context of the object on it. In the CNF view everything works
fine, as the objects being clicked are IFiles.
When the double click occurs on the custom view, before I invoke the
openEditor method,
the object is saved in resource file.
getViewSite().getWorkbenchWindow().getActivePage().openEdito r(message,
Editor.ID)
However when I do that, I get org.eclipse.ui.PartInitException: Text
editor does not have a document provider at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:3026)
However I could not find a method to set a DocumentProvider for a
MultiPage editor.
Any suggestions/ideas on what I may be missing here ?
Thanks,
--MD.
|
|
|
Powered by
FUDForum. Page generated in 0.03564 seconds