|Re: Read-only editor content: ByteArrayStorage & ByteArrayStorageEditorInput [message #545727 is a reply to message #545725]
||Thu, 08 July 2010 18:52
| Mark Storer
Registered: May 2010
Location: Vista, CA
Oddly enough, my code looks remarkably similar to what's posted here|
According to this blog, implementing an IPersistableElement will allow the data to be saved...
More as things develop.
EDIT: Grr. Returning an IPersistableElement implementation allows didn't help with the NPE. Turning off quick-diff did. Huh. Okey doke.
That hurdle passed, I started looking into getting my data back out of some random editor. Doesn't look good. Given an IEditorPart, there doesn't seem to be a way to extract its contents.
Even if I can convince JSC to take one of my memory streams, I still need to create an adapter for each type of editor that I'd like to support.
It looks like I'm not the first person to run into this issue.
A year ago, someone by the name of Hallvard Traetteberg was trying the same goal with a different approach... He was trying to whip up his own DocumentProvider:
The thread ends with the issue unresolved. Not very encouraging.
Senior Software Engineer
Disclaimer<Cardiff> disCard = null;
Google Code Search
[Updated on: Thu, 08 July 2010 20:57]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02680 seconds