/// <summary>
        /// Returns the customizable element container of the given element (if any).
        /// </summary>
        public static CustomizableElementSchema GetParentCustomizationElement(this ModelElement element)
        {
            var parentElement = DomainRelationshipInfo.FindEmbeddingElement(element);
            var parent        = parentElement as CustomizableElementSchema;

            return(parent);
        }
Ejemplo n.º 2
0
        private ModelElement FindEmbeddingElement()
        {
            var mel = this as ModelElement;

            if (mel == null)
            {
                return(null);
            }

            return(DomainRelationshipInfo.FindEmbeddingElement(mel));
        }