Exemple #1
0
 /// <summary>
 /// Gets called when a new model element is added as a child of the current model element
 /// </summary>
 /// <param name="child">The child element</param>
 /// <remarks>This method is not called if an existing model element is moved in the composition hierarchy</remarks>
 protected virtual void OnChildCreated(IModelElement child)
 {
     if (bubbledChange != null || IsFlagSet(ModelElementFlag.RaiseBubbledChanges))
     {
         OnBubbledChange(BubbledChangeEventArgs.ElementCreated(child, new UriChangedEventArgs(null)));
     }
 }
Exemple #2
0
 /// <summary>
 /// Gets called when a new model element is added as a child of the current model element
 /// </summary>
 /// <param name="child">The child element</param>
 /// <remarks>This method is not called if an existing model element is moved in the composition hierarchy</remarks>
 protected virtual void OnChildCreated(IModelElement child)
 {
     OnBubbledChange(BubbledChangeEventArgs.ElementCreated(child, new UriChangedEventArgs(null)));
 }
Exemple #3
0
 /// <summary>
 /// Gets called when a new model element is added as a child of the current model element
 /// </summary>
 /// <param name="child">The child element</param>
 /// <remarks>This method is not called if an existing model element is moved in the composition hierarchy</remarks>
 protected virtual void OnChildCreated(IModelElement child)
 {
     OnBubbledChange(BubbledChangeEventArgs.ElementCreated(child, IsFlagSet(ModelElementFlag.RequireUris)));
 }