/** * Runs the given safe runnable using the safe runnable runner. This is a * convenience method, equivalent to: * <code>SafeRunnable.getRunner().run(runnable)</code>. * * @param runnable * the runnable to run * @since 3.1 */ public static void run(ISafeRunnable runnable) { getRunner().run(runnable); }
/** * Runs the given safe runnable using the safe runnable runner. This is a * convenience method, equivalent to: * <code>SafeRunnable.getRunner().run(runnable)</code>. * * @param runnable * the runnable to run * @since 1.0 */ public static void run(ISafeRunnable runnable) { getRunner().run(runnable); }
/** * Runs the given safe runnable using the safe runnable runner. This is a * convenience method, equivalent to: * <code>SafeRunnable.getRunner().run(runnable)</code>. * * @param runnable * the runnable to run * @since 3.1 */ public static void run(ISafeRunnable runnable) { getRunner().run(runnable); }
public void dispose () { checkWidget (); if ( this.disposed ) { return; } this.disposed = true; for ( final DisposeListener listener : this.disposeListeners ) { SafeRunnable.getRunner ().run ( new SafeRunnable () { @Override public void run () throws Exception { listener.onDispose (); }; } ); } this.resourceManager.dispose (); }
public void dispose () { checkWidget (); if ( this.disposed ) { return; } this.disposed = true; for ( final DisposeListener listener : this.disposeListeners ) { SafeRunnable.getRunner ().run ( new SafeRunnable () { @Override public void run () throws Exception { listener.onDispose (); }; } ); } this.resourceManager.dispose (); }