public class EMFEditProperties
extends java.lang.Object
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
A factory to create property bound attributes forEObject
which use an EditingDomain
to make changes to the EObject
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
Turn on debug logging
|
Constructor and Description |
---|
EMFEditProperties() |
Modifier and Type | Method and Description |
---|---|
static IEMFEditListProperty |
list(EditingDomain editingDomain,
EStructuralFeature feature)
Returns a list property for the given
EStructuralFeature |
static IEMFEditListProperty |
list(EditingDomain editingDomain,
FeaturePath featurePath)
Returns a list property for the given
FeaturePath |
static IEMFEditMapProperty |
map(EditingDomain editingDomain,
EStructuralFeature feature)
Returns a map property for the given
EStructuralFeature . |
static IEMFEditListProperty |
multiList(EditingDomain editingDomain,
EStructuralFeature... features)
Combine multiple multi-value features into one observable list property
|
static IEMFEditListProperty |
multiList(EditingDomain editingDomain,
FeaturePath... featurePaths)
Combine the features identified by the the path into one observable list property
|
static IEMFEditListProperty |
multiList(EditingDomain editingDomain,
FeaturePath rootPath,
EStructuralFeature... features)
Combine multiple features below a common path into one observable list property
|
static IEMFEditListProperty |
multiList(EditingDomain editingDomain,
IEMFEditListProperty... properties)
Combine the given list properties into one observable list property
|
static IEMFEditListProperty |
resource(EditingDomain editingDomain)
Returns a property to observe a resource-content
|
static IEMFEditSetProperty |
set(EditingDomain editingDomain,
EStructuralFeature feature)
Returns a set property for the given
EStructuralFeature |
static IEMFEditSetProperty |
set(EditingDomain editingDomain,
FeaturePath featurePath)
Returns a set property for the given
FeaturePath |
static IEMFEditValueProperty |
value(EditingDomain editingDomain,
EStructuralFeature feature)
Returns a value property for the given
EStructuralFeature |
static IEMFEditValueProperty |
value(EditingDomain editingDomain,
FeaturePath featurePath)
|
static IEMFEditValueProperty[] |
values(EditingDomain editingDomain,
EStructuralFeature... features)
Returns multiple value properties for the given
EStructuralFeature s |
static IEMFEditValueProperty[] |
values(EditingDomain editingDomain,
FeaturePath... featurePaths)
Returns multiple value property for the given nested
EStructuralFeature features like the name of a
person |
public static final boolean DEBUG
public static IEMFEditValueProperty value(EditingDomain editingDomain, EStructuralFeature feature)
EStructuralFeature
editingDomain
- the editing domainfeature
- the feature instance the property is created forEStructuralFeature
public static IEMFEditValueProperty value(EditingDomain editingDomain, FeaturePath featurePath)
editingDomain
- the editing domainfeaturePath
- path to the featureFeaturePath
public static IEMFEditValueProperty[] values(EditingDomain editingDomain, EStructuralFeature... features)
EStructuralFeature
seditingDomain
- the editing domainfeatures
- the feature instances the properties are created forEStructuralFeature
spublic static IEMFEditValueProperty[] values(EditingDomain editingDomain, FeaturePath... featurePaths)
EStructuralFeature
features like the name
of a
person
editingDomain
- the editing domainfeaturePaths
- path to the featureFeaturePath
spublic static IEMFEditSetProperty set(EditingDomain editingDomain, EStructuralFeature feature)
EStructuralFeature
editingDomain
- the editing domainfeature
- the feature instance the property is created forEStructuralFeature
public static IEMFEditSetProperty set(EditingDomain editingDomain, FeaturePath featurePath)
FeaturePath
editingDomain
- the editing domainfeaturePath
- the feature pathFeaturePath
public static IEMFEditListProperty list(EditingDomain editingDomain, EStructuralFeature feature)
EStructuralFeature
editingDomain
- the editing domainfeature
- the feature instance the property is created forEStructuralFeature
public static IEMFEditListProperty list(EditingDomain editingDomain, FeaturePath featurePath)
FeaturePath
editingDomain
- featurePath
- FeaturePath
public static IEMFEditListProperty multiList(EditingDomain editingDomain, EStructuralFeature... features)
editingDomain
- the editing domainfeatures
- the features to add to the listpublic static IEMFEditListProperty multiList(EditingDomain editingDomain, FeaturePath rootPath, EStructuralFeature... features)
editingDomain
- the editing domainrootPath
- the root pathfeatures
- the featurespublic static IEMFEditListProperty multiList(EditingDomain editingDomain, FeaturePath... featurePaths)
editingDomain
- the editing domainfeaturePaths
- the feature pathspublic static IEMFEditListProperty multiList(EditingDomain editingDomain, IEMFEditListProperty... properties)
editingDomain
- the editing domainproperties
- the propertiespublic static IEMFEditMapProperty map(EditingDomain editingDomain, EStructuralFeature feature)
EStructuralFeature
. Objects lacking the named property are treated the same as if the
property always contains an empty map.editingDomain
- the editing domainfeature
- the feature the property is created forEStructuralFeature
public static IEMFEditListProperty resource(EditingDomain editingDomain)
editingDomain
- the editing domain