Bug 205248 [Databinding] Observables on Text with FOCUS_OUT event incorrectly notify with no change
If you get an observable on a Text for the FOCUS_OUT event, the model is updated every time, even if there is no change in the value. The observable should not trigger a model change if the Text value is the same as the model value.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/swt/TextObservableValueTest.java
assertEquals(a, listener.event.diff.getOldValue());
		assertEquals(b, listener.event.diff.getNewValue());
	}
	public void testOnModifyValueChangeEvent() throws Exception {
		TextObservableValue observableValue = new TextObservableValue(text,
				SWT.Modify);
		String a = "a";
		String b = "b";
		text.setText(a);
		
		observableValue.addValueChangeListener(listener);
		assertEquals(0, listener.count);
		text.setText(b);
		assertEquals(1, listener.count);
		assertEquals(a, listener.event.diff.getOldValue());
		assertEquals(b, listener.event.diff.getNewValue());
	}
	public void testOnFocusOutValueChangeEvent() throws Exception {
		String a = "a";
		String b = "b";
		
		text.setText(a);
		TextObservableValue observableValue = new TextObservableValue(text,
				SWT.FocusOut);
		
		observableValue.addValueChangeListener(listener);
		
		text.setText(b);
		assertEquals(0, listener.count);