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
source
IModelElementThe model element containing the collection.
propertyName
stringThe name of the collection property.
args
NotifyCollectionChangedEventArgsThe event data of the original event
feature
Lazy<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
source
IModelElementThe model element containing the collection.
propertyName
stringThe name of the collection property.
args
NotifyCollectionChangedEventArgsThe event data of the original event
feature
Lazy<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
child
IModelElementThe child that has been created
e
UriChangedEventArgsThe 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
source
ModelElementThe element that has been deleted
e
UriChangedEventArgsThe 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
source
IModelElementThe model element that is the target for the call
operation
IOperationThe operation that is called
args
OperationCallEventArgsThe 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
source
IModelElementThe model element that is the target for the call
operation
IOperationThe operation that is called
args
OperationCallEventArgsThe 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
source
IModelElementThe model element containing the property.
propertyName
stringThe property name.
args
ValueChangedEventArgsThe event data of the original event
feature
Lazy<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
source
IModelElementThe model element containing the property.
propertyName
stringThe property name.
eventArgs
ValueChangedEventArgsThe event data of the original event
feature
Lazy<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
modelElement
ModelElementThe model element whose uri has changed
e
UriChangedEventArgsThe original event data
Returns
- BubbledChangeEventArgs
A BubbledChange event data container