Bug 126839 [DataBinding] IObservable refactoring
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/SWTUtil.java
int result = (int)(i1 * ratio + i2 * (1.0d - ratio));
        if (result < 0) {
			result = 0;
		}
        if (result > 255) {
			result = 255;
		}
        return result;
    }
	/**
	 * Logs an exception as though it was thrown by a SafeRunnable
	 * being run with the default ISafeRunnableRunner. Will not
	 * open modal dialogs or spin the event loop.
	 * 
	 * @param t throwable to log
	 */
	public static void logException(final Exception t) {
		SafeRunnable.run(new SafeRunnable() {
			public void run() throws Exception {
				throw t;
			}
			public void handleException(Throwable e) {
				
				
				
			}
		});
	}
}