|JFace TextViewer, iTextStore & a thread [message #458086]
||Sat, 09 July 2005 14:15
Originally posted by: hisdudenessabides.gmail.com|
I'm new to Jface/Swt. Being used to Swing, I'm a bit confused about
how to do this:
I want to use a TextViewer, by updating its document model from within
another thread (that is continously reading data from a server ). But
I think I will have 3 problems:
a) The Document class (or any IDocument implementation) does not have
an appendText method ! I can't replace all the text each time text
b) The set methods of the Document class are not synchronized.
c) I can't pass a textViewer reference to the server thread because
that's a GUI object that belongs to the main thread...
Should I use an iTextStore implementation ? And is the right way to have a
Vector class (which has synchornized get/add methods) as its datamodel ?
Therefore, I really need your advice on how to go about this.
Any help is appreciated,
Powered by FUDForum
. Page generated in 0.02038 seconds