[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] jface.text examples? design principles?

I assume this is a model-view archtecture, and that therefore the Document
class isn't supposed to be aware of the TextViewer(s) it is associated with.
Is that correct?

I am using TextViewer / Document to fill a StyledText widget in my
stand-alone app. The text is READ-ONLY. It displays text that the program
generates.

If I specify the text content with a Document, then how do I set the text
color? Is that done with the TextViewer? What is a good design for doing
this?

Are Partitions the answer? Can I associate text styles with Partitions and
then partition my Document? TextPresentation?

-Erik