コード例 #1
0
        /// <summary>
        ///     Performs a refactoring of the model then ensure that the namespaces in its inner elements are correct
        /// </summary>
        /// <param name="model"></param>
        public void RefactorAndRelocate(ModelElement model)
        {
            if (model != null)
            {
                Refactor(model, model.Name);

                RelocateVisitor relocator = new RelocateVisitor(model);
                relocator.visit(model);
            }
        }
コード例 #2
0
        /// <summary>
        ///     Performs a refactoring of the model then ensure that the namespaces in its inner elements are correct
        /// </summary>
        /// <param name="model"></param>
        public void RefactorAndRelocate(ModelElement model)
        {
            if (model != null)
            {
                Refactor(model, model.Name);

                RelocateVisitor relocator = new RelocateVisitor(model);
                relocator.visit(model);
            }
        }