Class BubbledChangeEventArgs
Describes that an elementary change in the model elements containment hierarchy has happened
public class BubbledChangeEventArgs : EventArgs
- Inheritance
-
BubbledChangeEventArgs
- Inherited Members
Properties
ChangeType
Gets the type of change that occured. This defines the type of OriginalEventArgs and whether PropertyName is used.
public ChangeType ChangeType { get; }
Property Value
Element
The original model element directly affected by this change
public IModelElement Element { get; }
Property Value
Feature
Gets the feature that was affected from the change or null, if not applicable or could not be loaded
public ITypedElement Feature { get; }
Property Value
OriginalEventArgs
The original event arguments
public EventArgs OriginalEventArgs { get; }
Property Value
PropertyName
The name of the affected property or null, if no specific property was affected
public string PropertyName { get; }
Property Value
Methods
CollectionChanged(IModelElement, string, NotifyCollectionChangedEventArgs, Lazy<ITypedElement>)
Creates an instance of BubbledChangeEventArgs describing a change in a collection.
public static BubbledChangeEventArgs CollectionChanged(IModelElement source, string propertyName, NotifyCollectionChangedEventArgs args, Lazy<ITypedElement> feature = null)
Parameters
sourceIModelElementThe model element containing the collection.
propertyNamestringThe name of the collection property.
argsNotifyCollectionChangedEventArgsThe event data of the original event
featureLazy<ITypedElement>The affected feature
Returns
- BubbledChangeEventArgs
The complete event data
CollectionChanging(IModelElement, string, NotifyCollectionChangedEventArgs, Lazy<ITypedElement>)
Creates an instance of BubbledChangeEventArgs describing an upcoming change in a collection.
public static BubbledChangeEventArgs CollectionChanging(IModelElement source, string propertyName, NotifyCollectionChangedEventArgs args, Lazy<ITypedElement> feature = null)
Parameters
sourceIModelElementThe model element containing the collection.
propertyNamestringThe name of the collection property.
argsNotifyCollectionChangedEventArgsThe event data of the original event
featureLazy<ITypedElement>The affected feature
Returns
- BubbledChangeEventArgs
The complete event data
ElementCreated(IModelElement, UriChangedEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an element in the tree has been created
public static BubbledChangeEventArgs ElementCreated(IModelElement child, UriChangedEventArgs e)
Parameters
childIModelElementThe child that has been created
eUriChangedEventArgsThe original event data
Returns
- BubbledChangeEventArgs
A BubbledChange event data container
ElementDeleted(ModelElement, UriChangedEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an element in the tree has been deleted
public static BubbledChangeEventArgs ElementDeleted(ModelElement source, UriChangedEventArgs e)
Parameters
sourceModelElementThe element that has been deleted
eUriChangedEventArgsThe original event data
Returns
- BubbledChangeEventArgs
A BubbledChange event data container
OperationCalled(IModelElement, IOperation, OperationCallEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an operation is being called
public static BubbledChangeEventArgs OperationCalled(IModelElement source, IOperation operation, OperationCallEventArgs args)
Parameters
sourceIModelElementThe model element that is the target for the call
operationIOperationThe operation that is called
argsOperationCallEventArgsThe event arguments, including parameters of the call
Returns
OperationCalling(IModelElement, IOperation, OperationCallEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an operation is being called
public static BubbledChangeEventArgs OperationCalling(IModelElement source, IOperation operation, OperationCallEventArgs args)
Parameters
sourceIModelElementThe model element that is the target for the call
operationIOperationThe operation that is called
argsOperationCallEventArgsThe event arguments, including parameters of the call
Returns
PropertyChanged(IModelElement, string, ValueChangedEventArgs, Lazy<ITypedElement>)
Creates an instance of BubbledChangeEventArgs describing a change of a property value.
public static BubbledChangeEventArgs PropertyChanged(IModelElement source, string propertyName, ValueChangedEventArgs args, Lazy<ITypedElement> feature = null)
Parameters
sourceIModelElementThe model element containing the property.
propertyNamestringThe property name.
argsValueChangedEventArgsThe event data of the original event
featureLazy<ITypedElement>The affected feature
Returns
- BubbledChangeEventArgs
The complete event data
PropertyChanging(IModelElement, string, ValueChangedEventArgs, Lazy<ITypedElement>)
Create an instance of BubbledChangeEventArgs describing an upcoming change of a property value.
public static BubbledChangeEventArgs PropertyChanging(IModelElement source, string propertyName, ValueChangedEventArgs eventArgs, Lazy<ITypedElement> feature = null)
Parameters
sourceIModelElementThe model element containing the property.
propertyNamestringThe property name.
eventArgsValueChangedEventArgsThe event data of the original event
featureLazy<ITypedElement>The affected feature
Returns
- BubbledChangeEventArgs
The complete event data
UriChanged(ModelElement, UriChangedEventArgs)
Creates an instance of BubbledChangeEventArgs describing that the Uri of an element has changed
public static BubbledChangeEventArgs UriChanged(ModelElement modelElement, UriChangedEventArgs e)
Parameters
modelElementModelElementThe model element whose uri has changed
eUriChangedEventArgsThe original event data
Returns
- BubbledChangeEventArgs
A BubbledChange event data container