[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Update editor coloring according to folding

Michael Spector wrote:
Hi!

I have the following problem: it doesn't matter whether editor elements are folded or not coloring remains the same. When everything is unfolded the coloring is correct, but when folding one of elements it looks like previous coloring retains in folded element. I use line style provider, which executes scanner on document contents, and produces StyleRange's that contain coloring information correct for the document contents.
The question is: what part should be responsible for reconciling editor coloring according to the projection model?
Looks like you are using the text framework. This is based on using SWT StyleRange to color the text and this cannot be combined with a LineStyleListener.

Dani

Thanks!