Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace TextViewer, iTextStore & a thread
JFace TextViewer, iTextStore & a thread [message #458086] Sat, 09 July 2005 14:15 Go to next message
Eclipse UserFriend
Originally posted by: hisdudenessabides.gmail.com

Hi there,

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
updates ...

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,

Thank you,
Re: JFace TextViewer, iTextStore & a thread [message #458991 is a reply to message #458086] Thu, 28 July 2005 13:51 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
If you're still looking for answers to these questions then you should ask
in the eclipse.platform newsgroup, since that is where jface lives.

"Ahsan" <hisdudenessabides@gmail.com> wrote in message
news:51c5969c7d1b1ea2aa7eb753c4ab8fb2$1@www.eclipse.org...
>
> Hi there,
>
> 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
> updates ...
>
> 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,
>
> Thank you,
>
Previous Topic:how to handle treeviewer before expand happened ?
Next Topic:Eclipse Tooltips Style
Goto Forum:
  


Current Time: Thu Oct 22 19:01:36 GMT 2020

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

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

Back to the top