|
|
|
Re: Editor problems with external files [message #499184 is a reply to message #499001] |
Fri, 20 November 2009 10:46 |
Andreas Winkler Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Hi,
I don't know how to get stack trace cause I don't get any error in the log. Just the word ERROR is displayed in the editorArea.
While debugging I found out that in StorageDocumentProvider.getEncoding the element is checked if it is instanceof IStorageEditorInput which it obviously isn't. And that's where createDocument can't set the document content and therefor returns null as the document. super.createDocument( element ) is called in my DocumentProvider which extends FileDocumentProvider.
element is an Object of org.eclipse.ui.ide.FileStoreEditorInput
My Editor extends AbstractDecoratedTextEditor, but the same error occurs when extending TextEditor instead.
Regards
Andreas
[Updated on: Fri, 20 November 2009 10:47] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds