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
text.notifyListeners(SWT.FocusOut, null);
		assertEquals(1, listener.count);
		
		assertEquals(a, listener.event.diff.getOldValue());
		assertEquals(b, listener.event.diff.getNewValue());
	}
	
	public void testChangeEventsSuppressedWhenValueDoesNotChange() throws Exception {
		TextObservableValue observableValue = new TextObservableValue(text, SWT.Modify);
		
		observableValue.addValueChangeListener(listener);
		
		String value = "value";
		text.setText(value);
		assertEquals(1, listener.count);
		
		text.setText(value);
		assertEquals("listener not notified", 1, listener.count);
	}
	
	/**
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=171132
	 * 
	 * @throws Exception
	 */
	public void testGetValueBeforeFocusOutChangeEventsFire() throws Exception {
		TextObservableValue observableValue = new TextObservableValue(text, SWT.FocusOut);
		observableValue.addValueChangeListener(listener);
		
		String a = "a";