Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » using colors/styles with JFace
using colors/styles with JFace [message #144526] Wed, 15 October 2003 13:03
Eclipse UserFriend
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
Previous Topic:newbie: Building now takes forever
Next Topic:Eclipse install can't find bootstrap code
Goto Forum:
  


Current Time: Fri Jul 18 07:33:39 EDT 2025

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

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

Back to the top