Atl2NmfSBenchmark/Metamodels/Make.cs
/// <summary>
/// Gets called when the parent model element of the current model element is about to change
/// </summary>
/// <param name="oldParent">The old parent model element</param>
/// <param name="newParent">The new parent model element</param>
Gets called when the parent model element of the current model element is about to change
Gets called when the parent model element of the current model element is about to change
protected override void OnParentChanging(IModelElement newParent, IModelElement oldParent)
        {
            IRule oldRuleShellLine = ModelHelper.CastAs<IRule>(oldParent);
            IRule newRuleShellLine = ModelHelper.CastAs<IRule>(newParent);
            ValueChangedEventArgs e = new ValueChangedEventArgs(oldRuleShellLine, newRuleShellLine);
            this.OnRuleShellLineChanging(e);
            this.OnPropertyChanging("RuleShellLine", e, _ruleShellLineReference);
        }
protected override void OnParentChanging ( IModelElement newParent , IModelElement oldParent ) { IRule oldRuleShellLine = ModelHelper . CastAs < IRule > ( oldParent ) ; IRule newRuleShellLine = ModelHelper . CastAs < IRule > ( newParent ) ; ValueChangedEventArgs e = new ValueChangedEventArgs ( oldRuleShellLine , newRuleShellLine ) ; this . OnRuleShellLineChanging ( e ) ; this . OnPropertyChanging ( " " , e , _ruleShellLineReference ) ; }
Gets called when the parent model element of the current model element is about to change
Gets called when the parent model element of the current model element is about to change
newParent
IModelElement
The new parent model element
The new parent model element
oldParent
IModelElement
The old parent model element
The old parent model element