Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/viewers/ViewersUpdatableFactory.java
private int updateTime;	
	
	/**
	 * Create a factory that can create udatables for JFace viewers
	 */
	public ViewersUpdatableFactory(){
	}
	/**
	 * @param updateTime.  		Update policy of IDataBindingContext.TIME_EARLY or TIME_LATE.  This is only a hint
	 * 							that some editable viewers may support
	 */
	public ViewersUpdatableFactory(int updateTime) {
		this.updateTime = updateTime;
	}
	public IUpdatable createUpdatable(Map properties, Object description,
			IDataBindingContext bindingContext) {
		if (description instanceof Property) {
			Object object = ((Property) description).getObject();
			Object attribute = ((Property) description)
					.getPropertyID();
			if (object instanceof StructuredViewer
					&& ViewersProperties.SINGLE_SELECTION.equals(attribute)) {
				return new StructuredViewerUpdatableValue(
						(StructuredViewer) object, (String) attribute);
			}
			if (object instanceof AbstractListViewer
					&& ViewersProperties.SINGLE_SELECTION.equals(attribute))