Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/TextUpdatableValue.java
private int updatePolicy;
	
	private String bufferedValue;	
	
	private Listener validateListener = new Listener() {
		public void handleEvent(Event event) {
			if (!updating) {
				fireChangeEvent(ChangeEvent.CHANGE, null, text.getText());
			}
		}
	};
	private Listener updateListener = new Listener() {
		public void handleEvent(Event event) {
			if (!updating) {
				String oldValue = bufferedValue;
				String newValue = text.getText();
				
								
				if (updatePolicy == SWT.FocusOut){
					bufferedValue = text.getText();
					if (!oldValue.equals(newValue)) {
						fireChangeEvent(ChangeEvent.CHANGE, null, text.getText());						
					}
				} else {
					fireChangeEvent(ChangeEvent.CHANGE, null, text.getText());						
				}
			}
		}
	};
	private VerifyListener verifyListener;