Ejemplo n.º 1
0
        public override void FillCopy(Versioning.IExolutioCloneable copyComponent, ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);
            PSMGeneralizationViewHelper copyGeneralizationViewHelper = (PSMGeneralizationViewHelper)copyComponent;

            copyGeneralizationViewHelper.Points.AppendRangeAsCopy(this.Points);
        }
Ejemplo n.º 2
0
        public override void FillCopy(Versioning.IExolutioCloneable copyComponent, ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);
            PIMAssociationEndViewHelper copyAssociationEndViewHelper = (PIMAssociationEndViewHelper)copyComponent;

            this.CardinalityLabelViewHelper.FillCopy(copyAssociationEndViewHelper.CardinalityLabelViewHelper, projectVersion, createdCopies);
            this.RoleLabelViewHelper.FillCopy(copyAssociationEndViewHelper.RoleLabelViewHelper, projectVersion, createdCopies);
            copyAssociationEndViewHelper.Points.AppendRangeAsCopy(this.Points);
        }
        public override void FillCopy(Versioning.IExolutioCloneable copyComponent, ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);
            PositionableElementViewHelper copyPositionableElementViewHelper = (PositionableElementViewHelper)copyComponent;

            copyPositionableElementViewHelper.X      = this.X;
            copyPositionableElementViewHelper.Y      = this.Y;
            copyPositionableElementViewHelper.Height = this.Height;
            copyPositionableElementViewHelper.Width  = this.Width;
        }
Ejemplo n.º 4
0
        public override void FillCopy(Versioning.IExolutioCloneable copyComponent, ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);
            PIMAssociationViewHelper copyAssociationViewHelper = (PIMAssociationViewHelper)copyComponent;

            copyAssociationViewHelper.UseDiamond = UseDiamond;

            MainLabelViewHelper.FillCopy(copyAssociationViewHelper.MainLabelViewHelper, projectVersion, createdCopies);

            for (int i = 0; i < AssociationEndsViewHelpers.Count; i++)
            {
                PIMAssociationEndViewHelper associationEndViewHelper = AssociationEndsViewHelpers[i];
                PIMAssociationEnd           copyEnd = projectVersion.Project.TranslateComponent <PIM.PIMAssociation>(createdCopies.GetGuidForCopyOf(associationEndViewHelper.AssociationEnd.PIMAssociation)).PIMAssociationEnds[i];
                System.Diagnostics.Debug.Assert(copyEnd.PIMClass == projectVersion.Project.TranslateComponent <PIM.PIMClass>(createdCopies.GetGuidForCopyOf(associationEndViewHelper.AssociationEnd.PIMClass)));
                PIMAssociationEndViewHelper endViewHelperCopy = new PIMAssociationEndViewHelper(copyAssociationViewHelper.Diagram, copyAssociationViewHelper);
                endViewHelperCopy.AssociationEnd = copyEnd;
                associationEndViewHelper.FillCopy(endViewHelperCopy, projectVersion, createdCopies);
                copyAssociationViewHelper.AssociationEndsViewHelpers.Add(endViewHelperCopy);
            }
        }
Ejemplo n.º 5
0
 public override void FillCopy(Versioning.IExolutioCloneable copyComponent, ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies)
 {
     base.FillCopy(copyComponent, projectVersion, createdCopies);
     PSMSchemaClassViewHelper copyPSMSchemaClassViewHelper = (PSMSchemaClassViewHelper)copyComponent;
 }