Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2009 Matthew Hall and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Matthew Hall - initial API and implementation (bug 194734) Matthew Hall - bug 195222, 264307, 265561 /
package org.eclipse.core.internal.databinding.beans;

Since:
3.3
public class BeanValueProperty extends SimpleValueProperty {
	private final Class valueType;

Parameters:
propertyDescriptor
valueType
	public BeanValueProperty(PropertyDescriptor propertyDescriptor,
			Class valueType) {
		this. = propertyDescriptor;
		this. = valueType == null ? propertyDescriptor
				.getPropertyType() : valueType;
	}
	public Object getValueType() {
		return ;
	}
	protected Object doGetValue(Object source) {
		return BeanPropertyHelper.readProperty(source);
	}
	protected void doSetValue(Object sourceObject value) {
		BeanPropertyHelper.writeProperty(sourcevalue);
	}
			final ISimplePropertyListener listener) {
		return new BeanPropertyListener(thislistener) {
			protected IDiff computeDiff(Object oldValueObject newValue) {
				return Diffs.createValueDiff(oldValuenewValue);
			}
		};
	}
	public String toString() {
		String s = BeanPropertyHelper.propertyName();
		if ( != null)
			s += "<" + BeanPropertyHelper.shortClassName() + ">"//$NON-NLS-1$//$NON-NLS-2$
		return s;
	}
New to GrepCode? Check out our FAQ X