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
});
		assertEquals(o2, settableValue1.getValue());
		assertEquals(
				"Both binding events should be called the same number of times",
				calls[0], calls[1]);
		settableValue1.setValue(o1);
		assertEquals(o1, settableValue2.getValue());
		assertEquals(
				"Both binding events should be called the same number of times",
				calls[0], calls[1]);
		settableValue2.setValue(o2);
		assertEquals(
				"Both binding events should be called the same number of times",
				calls[0], calls[1]);
		assertEquals(o2, settableValue1.getValue());
		
		binding.addBindingEventListener(new BindingAdapter() {
			public ValidationError bindingEvent(BindingEvent e) {
				if (e.pipelinePosition == org.eclipse.jface.databinding.BindingEvent.PIPELINE_AFTER_CONVERT) {
					return ValidationError.error("error");
				}
				return null;
			}
		});
		settableValue1.setValue(o1);
		settableValue2.setValue(o2);
		assertEquals(
				"Both binding events should be called the same number of times",
				calls[0], calls[1]);
		assertEquals("binding events should be called at least once", true,