|
Re: Writing plugin output in an html editor [message #609331 is a reply to message #560203] |
Tue, 21 September 2010 20:48 |
Nick Sandonato Messages: 126 Registered: July 2009 |
Senior Member |
|
|
Hi Michel,
The HTMLEditor is actually an instance of MultiPageEditorPart, but fortunately it does contain an ITextEditor that you can get to.
What you'll need to do is first check if the editor is an instance of ITextEditor. If it is, you'll be able to get the document provider from it. Otherwise, you'll want to get the adapted object for the ITextEditor. You can do this by invoking editor.getAdapter(ITextEditor.class), then that value can be cast to an ITextEditor and you'll be able to get a document provider from it (given that it's not null).
[Updated on: Tue, 21 September 2010 20:55] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03212 seconds