Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » TextEditor with editable syntax highlighting
TextEditor with editable syntax highlighting [message #894728] Tue, 10 July 2012 09:40 Go to next message
Martin Lange is currently offline Martin LangeFriend
Messages: 16
Registered: May 2010
Location: Munich, Germany
Junior Member

Ciao,

I have implemented my own text editor (extended from AbstractDecoratedTextEditor) with syntax highlighting and a few more feature I like.

In addition to that I have created a preference page to configured the styles (bold, italic, foreground color, ...) use for the syntax highlighting.

The problem is, If I change the preferences (e.g. change the foreground color of one item), the syntax highlighting will not be updated. For that, I have to close and re-open the editor. I have seen, that this is done differently for e.g. the default java editor. This editor updates the syntax highlighting directly.

How can I implement this for my own editor?

Many thanks,
Best,
Martin

Re: TextEditor with editable syntax highlighting [message #894949 is a reply to message #894728] Wed, 11 July 2012 08:41 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi Martin,
take a look at this
http://www.vogella.com/articles/EclipsePreferences/article.html#preferences_listener
Previous Topic:Table Viewer - Composite as Cell Editor
Next Topic:TreeViewer update specific column of element
Goto Forum:
  


Current Time: Tue Mar 19 11:45:30 GMT 2024

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

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

Back to the top