Table of Contents

Class BubbledChangeEventArgs

Namespace
NMF.Models
Assembly
NMF.Models.dll

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

ChangeType

Element

The original model element directly affected by this change

public IModelElement Element { get; }

Property Value

IModelElement

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

ITypedElement

OriginalEventArgs

The original event arguments

public EventArgs OriginalEventArgs { get; }

Property Value

EventArgs

PropertyName

The name of the affected property or null, if no specific property was affected

public string PropertyName { get; }

Property Value

string

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 IModelElement

The model element containing the collection.

propertyName string

The name of the collection property.

args NotifyCollectionChangedEventArgs

The 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 IModelElement

The model element containing the collection.

propertyName string

The name of the collection property.

args NotifyCollectionChangedEventArgs

The 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 IModelElement

The child that has been created

e UriChangedEventArgs

The 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 ModelElement

The element that has been deleted

e UriChangedEventArgs

The 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 IModelElement

The model element that is the target for the call

operation IOperation

The operation that is called

args OperationCallEventArgs

The event arguments, including parameters of the call

Returns

BubbledChangeEventArgs

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 IModelElement

The model element that is the target for the call

operation IOperation

The operation that is called

args OperationCallEventArgs

The event arguments, including parameters of the call

Returns

BubbledChangeEventArgs

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 IModelElement

The model element containing the property.

propertyName string

The property name.

args ValueChangedEventArgs

The 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 IModelElement

The model element containing the property.

propertyName string

The property name.

eventArgs ValueChangedEventArgs

The 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 ModelElement

The model element whose uri has changed

e UriChangedEventArgs

The original event data

Returns

BubbledChangeEventArgs

A BubbledChange event data container