/**
* <copyright>
*
* Copyright (c) 2009 Tom Schindl
* 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:
* Tom Schindl <tom.schindl@bestsolution.at>
* </copyright>
*
* $Id: EMFMultiListProperty.java,v 1.2 2011/04/22 07:22:40 tschindl Exp $
*/
package org.eclipse.emf.databinding.internal;
import org.eclipse.core.databinding.property.list.MultiListProperty;
import org.eclipse.emf.databinding.EMFProperties;
import org.eclipse.emf.databinding.FeaturePath;
import org.eclipse.emf.databinding.IEMFListProperty;
import org.eclipse.emf.databinding.IEMFValueProperty;
import org.eclipse.emf.ecore.EStructuralFeature;
/**
* <p><b>PROVISIONAL:</b> This API is subject to arbitrary change, including renaming or removal.</p>
*
* @since 2.5
*/
public class EMFMultiListProperty extends MultiListProperty implements IEMFListProperty
{
/**
* Create new property
* @param properties
*/
public EMFMultiListProperty(IEMFListProperty[] properties)
{
super(properties);
}
public IEMFListProperty values(EStructuralFeature feature)
{
return values(FeaturePath.fromList(feature));
}
public IEMFListProperty values(FeaturePath featurePath)
{
return values(EMFProperties.value(featurePath));
}
public IEMFListProperty values(IEMFValueProperty property)
{
return new EMFListPropertyDecorator(super.values(property), property.getStructuralFeature());
}
public EStructuralFeature getStructuralFeature()
{
return null;
}
public IEMFValueProperty value(ListElementAccess elementAccess) {
throw new UnsupportedOperationException();
}
}