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 void testBindingListeners() {
		final int[] calls = new int[] { 0, 0 };
		
		
		
		
		
		
		
		
		final int[] pipelinePositions = new int[] { 0, 1, 2, 3, 4, 0, 2, 4, 1,
				0, 1, 2, 0, 2, 4, 1 };
		settableValue1.setValue(o1);
		settableValue2.setValue(o2);
		Binding binding = dbc.bind(settableValue1, settableValue2, null);
		binding.addBindingEventListener(new BindingAdapter() {
			public ValidationError bindingEvent(BindingEvent e) {
				
				assertEquals("Unexpected pipeline position at call #"
						+ calls[0], pipelinePositions[calls[0]],
						e.pipelinePosition);
				calls[0]++;
				return null;
			}
		});
		binding.addBindingEventListener(new BindingAdapter() {
			public ValidationError bindingEvent(BindingEvent e) {
				calls[1]++;
				return null;
			}