Home » Eclipse Projects » Remote Application Platform (RAP) » How to cancel Display.timerExec for RWT? (tried timerExec(-1, runnable))
How to cancel Display.timerExec for RWT? (tried timerExec(-1, runnable)) [message #990887] |
Fri, 14 December 2012 16:29 |
Eiro Neemous Messages: 2 Registered: December 2012 |
Junior Member |
|
|
I make a repeatable countdown timer to change label, and need to stop countdown for a while when an event I set occurs,
so I use Display.timerExec(-1, runnable) to cancel timerExec in SWT, and it surely works,
but it doesn't work for RWT. Is there any way to cancel timerExec for RWT?
Thanks in advance!
----
Update:
Finally I add a flag in timer class to mark if the instance need to restart next time, anyway it works now, but this implementation is still a little dirty
If anyone has better implementation, please tell me
[Updated on: Sat, 15 December 2012 01:47] Report message to a moderator
|
|
|
Re: How to cancel Display.timerExec for RWT? (tried timerExec(-1, runnable)) [message #990968 is a reply to message #990887] |
Sat, 15 December 2012 17:12 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
Cancelling a timerExec() works the same as in SWT.
If you find that it isn't working, please file a bugzilla along with
detailed steps to reproduce, ideally a self-contained test case/snippet.
Please also report the RWT version you are working with.
HTH
Rüdiger
On 14.12.2012 21:10, Eiro Neemous wrote:> I make a repeatable countdown
timer to change label, and need to stop
> countdown for a while when an event I set occurs,
> so I use Display.timerExec(-1, runnable) to cancel timerExec in SWT, and
> it surely works,
> but it doesn't work for RWT. Is there any way to cancel timerExec for
RWT?
> Thanks in advance!
--
Rüdiger Herrmann
http://codeaffine.com
|
|
| | |
Goto Forum:
Current Time: Thu Mar 28 22:07:12 GMT 2024
Powered by FUDForum. Page generated in 0.08582 seconds
|