Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Embedding images in a org.eclipse.ui.editors.text.TextEditor
Embedding images in a org.eclipse.ui.editors.text.TextEditor [message #644156] Thu, 09 December 2010 17:19
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
Hi all,

I have a org.eclipse.ui.editors.text.TextEditor in my workbench plugin
with a MonoReconciler with a reconciler strategy that performs spell
checking and some highlighting.

Now I would like to embed some images in the text like what is done in
the SWT code snippet ippets/src/org/eclipse/swt/snippets/

Everything works but the problem is that when the reconciler is called
images disappears and are replaced by the special placeholder used to
mark their position (i.e., "/uFFFC").

As a workaround I called sourceViewer.getTextWidget().redraw() when the
reconcile method in my reconcile strategy is called. In this case images
stay there, but all the highliting and the spellchecking underlying go away.

Any hint?

Previous Topic:Set Selection on Tree Viewer
Next Topic:[DataBinding] TableViewer with detail fields; Validation issues
Goto Forum:

Current Time: Fri Jun 22 22:47:48 GMT 2018

Powered by FUDForum. Page generated in 0.01440 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top