UICallback - Server- side refresh [message #76961] |
Thu, 06 March 2008 03:43  |
Eclipse User |
|
|
|
Originally posted by: me.micha-shl.de
Hey all,
i wanted to ask one Question refering the server- side initiated refresh.
If I call the display.async() and change for example the text of a label
just once, everything works fine.
But if I wanted to change the text of the same label twice, just the last
change seems to show. Between the 2 changes I have a thread.sleep().
Do I misunderstand the functionality of the async - method or can anybody
tell me how I can do multiple refreshes of an UI component. I want to
implement a simple Counter but I can`t get it to work. Really
disappointing ;)
Regards
Michael
|
|
|
|
Re: UICallback - Server- side refresh [message #77284 is a reply to message #77166] |
Fri, 07 March 2008 01:51  |
Eclipse User |
|
|
|
Originally posted by: me.micha-shl.de
Hey Frank,
Thank you for your reply. But I solved the problem. I just had to move
some lines of Code ;P
Regards
Michael
Frank Appel wrote:
> Hi,
> how long is your sleep time? It seems as if the second runnable is
> executed before the UIThread runs (runnable flooding with asyncExec).
> Did you try Display#syncExec(Runnable)?
> Ciao
> Frank
> -----Ursprüngliche Nachricht-----
> Von: Michael [mailto:me@micha-shl.de]
> Bereitgestellt: Donnerstag, 6. März 2008 09:43
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: UICallback - Server- side refresh
> Betreff: UICallback - Server- side refresh
> Hey all,
> i wanted to ask one Question refering the server- side initiated
> refresh.
> If I call the display.async() and change for example the text of a label
> just once, everything works fine.
> But if I wanted to change the text of the same label twice, just the
> last change seems to show. Between the 2 changes I have a
> thread.sleep().
> Do I misunderstand the functionality of the async - method or can
> anybody tell me how I can do multiple refreshes of an UI component. I
> want to implement a simple Counter but I can`t get it to work. Really
> disappointing ;)
> Regards
> Michael
|
|
|
Powered by
FUDForum. Page generated in 0.06688 seconds