/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IEAnnotation eAnnotationsCasted = item.As <IEAnnotation>(); if ((eAnnotationsCasted != null)) { this._parent.EAnnotations.Add(eAnnotationsCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { IEAnnotation eAnnotationItem = item.As <IEAnnotation>(); if (((eAnnotationItem != null) && this._parent.EAnnotations.Remove(eAnnotationItem))) { return(true); } return(false); }