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 247997) Matthew Hall - bug 264307 /
package org.eclipse.core.internal.databinding.beans;

Since:
3.3
	private final String propertyName;
	private Map delegates;

Parameters:
propertyName
elementType
	public AnonymousPojoSetProperty(String propertyNameClass elementType) {
		super(elementType);
		this. = propertyName;
		this. = new HashMap();
	}
	protected ISetProperty doGetDelegate(Object source) {
		Class beanClass = source.getClass();
		if (.containsKey(beanClass))
			return (ISetProperty.get(beanClass);
		ISetProperty delegate;
		try {
			delegate = PojoProperties.set(beanClass,
catch (IllegalArgumentException noSuchProperty) {
			delegate = null;
		}
		.put(beanClassdelegate);
		return delegate;
	}
	public String toString() {
		String s = "?." +  + "{}"//$NON-NLS-1$ //$NON-NLS-2$
		Class elementType = (ClassgetElementType();
		if (elementType != null)
			s += "<" + BeanPropertyHelper.shortClassName(elementType) + ">"//$NON-NLS-1$//$NON-NLS-2$
		return s;
	}
New to GrepCode? Check out our FAQ X