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
}
		super.tearDown();
	}
	protected void runTest() throws Throwable {
		try {
			super.runTest();
		} catch (Throwable th) {
			failed = true;
			throw th;
		}
	}
	public void testRegisterForDispose() {
		final boolean[] disposeCalled = new boolean[] { false };
		IObservableValue target = new WritableValue(Integer.TYPE) {
			public void dispose() {
				super.dispose();
				disposeCalled[0] = true;
			}
		};
		WritableValue model = new WritableValue(Integer.TYPE);
		model.setValue(new Integer(12));
		Display display = new Display();
		Shell shell = new Shell(display);
		final DataBindingContext dbc = DataBindingContext
				.createContext(new IObservableFactory[] {});
		registerContextToDispose(shell, dbc);
		dbc.registerForDispose(target);
		dbc.registerForDispose(model);
		dbc.bind(target, model, null);
		assertEquals("target should now have model's value", 12,