Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008 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 195222) Tom Schindl <tom.schindl@bestsolution.at> - port to EMF in 262160
package org.eclipse.emf.databinding.edit;

PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.

An org.eclipse.core.databinding.property.list.IListProperty extension interface with convenience methods for creating nested org.eclipse.emf.ecore.EStructuralFeatures

Since:
2.5
Noextend:
This interface is not intended to be extended by clients.
Noimplement:
This interface is not intended to be implemented by clients.
{
  
Returns a master-detail combination of this property and the specified value nested feature.

Parameters:
featurePath the nested feature to observe
Returns:
a nested combination of this property and the specified nested feature.
See also:
values(org.eclipse.emf.databinding.edit.IEMFEditValueProperty)
  public IEMFEditListProperty values(FeaturePath featurePath);

  
Returns a master-detail combination of this property and the specified value property.

Parameters:
feature the feature
Returns:
a nested combination of this property and the specified nested feature.
Returns a master-detail combination of this property and the specified value property. The returned property will observe the specified value property for all elements observed by this list property.

Example:

 // Observes the list-typed "children" property of a Person object,
 // where the elements are Person objects
 IEMFListProperty children = EMFProperties
        .list(MyPackage.Literals.PERSON_CHILDREN);
 // Observes the string-typed "name" property of a Person object
 IEMFValueProperty name = EMFProperties.value(MyPackage.Literals.PERSON_NAME);
 // Observes the names of children of a Person object.
 IEMFListProperty childrenNames = children.values(name);
 

Parameters:
property the detail property to observe
Returns:
a master-detail combination of this property and the specified value property.
  public IEMFEditValueProperty value(ListElementAccess<?> elementAccess);
New to GrepCode? Check out our FAQ X