Bug 159539 [DataBinding] Create a static initializer to create DBC with support for java primitives
It seems like in most scenarios default support for converters and validators for java's primitive types would be desired when creating a DataBindingContext. Attaching patch...
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/DatabindingContextTest.java
public IObservable createObservable(Object description) {
			return new DisposableObservable();
		}
	}
	public void testDisposeCalled() {
		Display display = new Display();
		Shell shell = new Shell(display);
		DataBindingContext dbc = DataBindingContext
				.createContext(new IObservableFactory[] { new DisposableObservableFactory() });
		registerContextToDispose(shell, dbc);
		DisposableObservable u = (DisposableObservable) dbc
				.createObservable(null);
		assertFalse("is not disposed", u.isDisposed());
		shell.dispose();
		display.dispose();
		assertTrue("is disposed", u.isDisposed());
	}
	private void registerContextToDispose(Shell shell,
			final DataBindingContext dbc) {
		shell.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent e) {
				dbc.dispose();
			}
		});
	}
	public void testBindValueModel() {
		Mocks.reset(observableValueRMock);
		observableValueRMock.addValueChangeListener(null);
		observableValueRMock.getValue();
		observableValueRMock.getValueType();