SourceViewer + Custom Scanner + Annotations = exception [message #498787] |
Wed, 18 November 2009 15:35 |
Chris Gross Messages: 471 Registered: July 2009 |
Senior Member |
|
|
I'm creating my own source editor. I've implemented a SourceViewer, adding
my own custom ITokenScanner, and everything was working fine.
I think tried to add annotation support and thats causing issues. The
annotations include a background color styling and when I add the annotation
I get an SWT exception because the underlying StyledText widget is
complaining about overlaping styles. This makes sense because the style
from the annotation does overlap some styles coming from my syntax scanner -
but I would assume some code in SourceViewer or somewhere would manage
merging the styles from my syntax scanner and the annotations for me. Is
that not correct? Is there something I need to do to allow the styles to be
merged?
regards,
-Chris
|
|
|
Powered by
FUDForum. Page generated in 0.02193 seconds