|Minimal editor based on bespoke IDocument [message #1732395]
||Mon, 16 May 2016 19:40
| Robert Onslow
Registered: March 2016
I have implemented a bespoke IDocument backed by a bespoke model. I extended org.eclipse.jface.text.Document and implemented get() and get(offset, length) of IDocument to return the model as text.
I create my bespoke IDocument within the getDocument(Object element) method of IDocumentProvider and then in TextEditor I use
When I run RCP, the text editor opens. Calls are made to get() and get(offset, length) of my IDocument, and debugging shows that the correct text is returned from the model.
But no content is shown in the TextEditor - just a blue background.
I suspect that I have missed a step but can't identify that at the moment.
Can anyone help with this?
[Updated on: Mon, 16 May 2016 20:01]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.04266 seconds