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 12:19
Fabio M is currently offline Fabio M
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
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.sn ippets/src/org/eclipse/swt/snippets/Snippet212.java?view=co

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?

Thanks,
Fabio
Previous Topic:how to add a double-click listener on TableViewer column header
Next Topic:[DataBinding] TableViewer with detail fields; Validation issues
Goto Forum:
  


Current Time: Fri Aug 29 12:28:18 EDT 2014

Powered by FUDForum. Page generated in 0.01416 seconds