public override Versioning.IExolutioCloneable Clone(ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies) { return(new PSMSchemaClassViewHelper(projectVersion.Project.TranslateComponent <Diagram>(createdCopies.GetGuidForCopyOf(Diagram)))); }
public override void FillCopy(Versioning.IExolutioCloneable copyComponent, ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies) { base.FillCopy(copyComponent, projectVersion, createdCopies); PSMSchemaClassViewHelper copyPSMSchemaClassViewHelper = (PSMSchemaClassViewHelper)copyComponent; }
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); }
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); } }
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 Versioning.IExolutioCloneable Clone(ProjectVersion projectVersion, Versioning.ElementCopiesMap createdCopies) { throw new NotImplementedException("Member PIMAssociationEndViewHelper.Clone not implemented."); }
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; }