using colors/styles with JFace [message #144526] |
Wed, 15 October 2003 13:03 |
Eclipse User |
|
|
|
I'm a pretty experienced user of SWT for stand-alone apps, but the jface
packages confound me. I have a TextView and a Document object interacting
nicely. However, I can't figure out how to set text color using
the TextView/Document method.
TextPresentation looks like a good bet. I tried associating a
TextPresentation with a TextView (via changeTextPresentation). I then added
StyleRanges to the TextPresentation from within my Document class. Nothing
happened.
Who should own the TextPresenation class? Should there be a many-to-one
relationship between TextView and TextPresentation? Or am I barking up the
wrong tree?
Maybe the "formatter" package would help. IDocumentPartitioner?? Help!!!
-Erik
|
|
|
Powered by
FUDForum. Page generated in 0.04464 seconds