Java Code Examples for org.eclipse.swt.widgets.Display.timerExec()

The following are Jave code examples for showing how to use timerExec() of the org.eclipse.swt.widgets.Display class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: RxSWT   File: DisplayScheduler.java   View Source Code Vote up 5 votes
private static void executeRunnable(Display display, long delay, TimeUnit unit, ScheduledRunnable scheduled) {
	Runnable asycRun = scheduled;
	if (0L < delay && delay < Integer.MAX_VALUE) {
		asycRun = () -> display.timerExec((int) unit.toMillis(delay), scheduled);
	}
	display.asyncExec(asycRun);
}