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
Mocks.setLastReturnValue(observableValueRMock, Object.class);
		validatorMock.isValid(null);
		Mocks.startChecking(observableValueRMock);
		Mocks.startChecking(validatorMock);
		dbc.bind(settableValue1, observableValueRMock, new BindSpec(
				identityConverter, identityConverter, validatorMock, null));
		Mocks.verify(observableValueRMock);
	}
	public void testBindValueTarget() {
		observableValueRMock.addValueChangeListener(null);
		observableValueRMock.setValue(null);
		observableValueRMock.getValue();
		observableValueRMock.getValueType();
		Mocks.setLastReturnValue(observableValueRMock, Object.class);
		validatorMock.isValid(null);
		Mocks.startChecking(observableValueRMock);
		Mocks.startChecking(validatorMock);
		dbc.bind(observableValueRMock, settableValue2, new BindSpec(
				identityConverter, identityConverter, validatorMock, null));
	}
	public void testBindValuePropagation() {
		settableValue1.setValue(o1);
		settableValue2.setValue(o2);
		dbc.bind(settableValue1, settableValue2, null);
		assertEquals(o2, settableValue1.getValue());
		settableValue1.setValue(o1);
		assertEquals(o1, settableValue2.getValue());
		settableValue2.setValue(o2);
		assertEquals(o2, settableValue1.getValue());
	}