Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/TextUpdatableValue.java
private KeyListener keyListener; 
	/**
	 * @param text
	 * @param updatePolicy
	 */
	public TextUpdatableValue(final Text text, int updatePolicy) {
		this.text = text;
		this.updatePolicy = updatePolicy;
		if (updatePolicy != SWT.None) {
			text.addListener(updatePolicy, updateListener);
		}
		
		
		
		if(updatePolicy == SWT.Modify){
			text.addListener(SWT.FocusOut, new Listener(){
				public void handleEvent(Event event){
					if(!updating){
						bufferedValue = text.getText();
					}
				}
			});
		}		
		verifyListener = new VerifyListener() {
			public void verifyText(VerifyEvent e) {
				if (!updating) {
					String currentText = TextUpdatableValue.this.text.getText();
					String newText = currentText.substring(0, e.start) + e.text
							+ currentText.substring(e.end);