/// <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))); } }
/// <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))); }
/// <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))); }