Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eiro Neemous is currently offline 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 Razz
If anyone has better implementation, please tell me Smile

[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 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 565
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
Re: How to cancel Display.timerExec for RWT? (tried timerExec(-1, runnable)) [message #991014 is a reply to message #990968] Mon, 17 December 2012 02:10 Go to previous messageGo to next message
Eiro Neemous is currently offline Eiro Neemous
Messages: 2
Registered: December 2012
Junior Member
Thank you for your reply Smile
I'm using RWT 2.0 now, and I'm sure timerExec( -1, runnable) behaves differently between RWT and Pure SWT,
and seems I need to log in to submit a bug, but I cannot find where to register = =
Anyway I upload a zip file with 3 java classes files in, test it then you'll find the difference Razz
Re: How to cancel Display.timerExec for RWT? (tried timerExec(-1, runnable)) [message #991066 is a reply to message #991014] Mon, 17 December 2012 09:12 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 565
Registered: July 2009
Senior Member
Thanks for providing the code, I can see the difference...

Still you should file a bug to be able to track progress on this issue.
To create an account go there:
https://dev.eclipse.org/site_login/createaccount.php
Then you can use this form:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=RAP&rep_platform=All&op_sys=all

- Rüdiger


On 17.12.2012 03:10, Eiro Neemous wrote:
> Thank you for your reply :)
> I'm using RWT 2.0 now, and I'm sure timerExec( -1, runnable) behaves differently between RWT and Pure SWT,
> and seems I need to log in to submit a bug, but I cannot find where to register = =
> Anyway I upload a zip file with 3 java classes files in, test it then you'll find the difference :p
>
Previous Topic:view on the action open a dialog, feasibility?
Next Topic:RWT/RAP VerifyEvent support and ClientScripting
Goto Forum:
  


Current Time: Sat Oct 25 21:29:18 GMT 2014

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

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