Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » SourceViewer + Custom Scanner + Annotations = exception
SourceViewer + Custom Scanner + Annotations = exception [message #498787] Wed, 18 November 2009 15:35
Chris Gross is currently offline Chris GrossFriend
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
Previous Topic:Tableviewer with contents being added dynamically
Next Topic:[Databinding] Display images for boolean property in TableViewer and single-click toggle editor
Goto Forum:
  


Current Time: Fri Apr 26 01:01:39 GMT 2024

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

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

Back to the top