public static MappingRelationshipShapeClass CreateMappingRelationshipShapeClass(DiagramClass diagramClass) { MappingRelationshipShapeClass shapeClass = diagramClass.Store.ElementFactory.CreateElement(MappingRelationshipShapeClass.DomainClassId) as MappingRelationshipShapeClass; Microsoft.VisualStudio.Modeling.ElementOperations elementOperations = new Microsoft.VisualStudio.Modeling.ElementOperations(diagramClass.Store as IServiceProvider, diagramClass.Store.DefaultPartition); Microsoft.VisualStudio.Modeling.ElementGroup elementGroup = new Microsoft.VisualStudio.Modeling.ElementGroup(diagramClass.Store.DefaultPartition); elementGroup.Add(shapeClass); elementGroup.MarkAsRoot(shapeClass); elementOperations.MergeElementGroup(diagramClass, elementGroup); shapeClass.Name = NameHelper.GetUniqueName(diagramClass.Store, MappingRelationshipShapeClass.DomainClassId); return(shapeClass); }
public static List <DataTemplateViewModel> GetMappingRelationshipShapeClassTemplate(BaseModelElementViewModel vm) { MappingRelationshipShapeClass shapeClass = vm.GetHostedElement() as MappingRelationshipShapeClass; MetaModel metaModel = shapeClass.GetMetaModel(); List <DataTemplateViewModel> retVms = ParseFile(vm.ViewModelStore, "MappingRelationshipShapeClassTemplate.xml", new string[] { shapeClass.Name, // CustomString0 metaModel.Namespace, // CustomString1 }); retVms.Add(CreateBindablePropertiesTemplate(vm)); return(retVms); }
/// <summary> /// Compares two shape classes by comparing their names. /// </summary> /// <param name="x">MappingRelationshipShapeClass to be compared.</param> /// <param name="y">MappingRelationshipShapeClass to be compared.</param> /// <returns>Int from Compare.To</returns> private static int CompareMappingRelationshipShapeClassesByName(MappingRelationshipShapeClass x, MappingRelationshipShapeClass y) { return x.Name.CompareTo(y.Name); }
/// <summary> /// Constructor. This view model constructed with 'bHookUpEvents=true' does react on model changes. /// </summary> /// <param name="viewModelStore">The store this view model belongs to.</param> /// <param name="element">Element represented by this view model.</param> public MappingRelationshipShapeClassViewModel(ViewModelStore viewModelStore, MappingRelationshipShapeClass element) : base(viewModelStore, element) { this.shapeClass = element; }
public void GenerateShapes(LibraryModelContext modelContext) { foreach (DiagramClass diagram in modelContext.DiagramClasses) { Dictionary <ShapeClass, List <ShapeClass> > childParentMapping = new Dictionary <ShapeClass, List <ShapeClass> >(); Dictionary <DomainClass, List <EmbeddingRelationship> > embeddingChildParentMapping = new Dictionary <DomainClass, List <EmbeddingRelationship> >(); foreach (PresentationElementClass presentationElement in diagram.PresentationElements) { if (presentationElement is ShapeClass) { ShapeClass shapeClass = presentationElement as ShapeClass; DomainClass domainClass = shapeClass.DomainClass; if (domainClass == null) { continue; } if (shapeClass.Parent != null) { if (shapeClass.Parent.DomainClass == null) { continue; } if (!childParentMapping.ContainsKey(shapeClass.Parent)) { childParentMapping.Add(shapeClass.Parent, new List <ShapeClass>()); } childParentMapping[shapeClass.Parent].Add(shapeClass); } if (!embeddingChildParentMapping.ContainsKey(domainClass)) { embeddingChildParentMapping.Add(domainClass, new List <EmbeddingRelationship>()); } foreach (DomainRole rolesPlayed in domainClass.RolesPlayed) { if (rolesPlayed.Relationship.Target == rolesPlayed && rolesPlayed.Relationship is EmbeddingRelationship && rolesPlayed.Relationship.InheritanceModifier != InheritanceModifier.Abstract) { if (!embeddingChildParentMapping[domainClass].Contains(rolesPlayed.Relationship as EmbeddingRelationship)) { embeddingChildParentMapping[domainClass].Add(rolesPlayed.Relationship as EmbeddingRelationship); } } } if (embeddingChildParentMapping[domainClass].Count > 0) { IEnumerable <AttributedDomainElement> sortedByInheritanceRS = CodeGenerationUtilities.SortDomainClassesByInheritance(embeddingChildParentMapping[domainClass]); embeddingChildParentMapping[domainClass].Clear(); foreach (EmbeddingRelationship r in sortedByInheritanceRS) { embeddingChildParentMapping[domainClass].Add(r); } } } } foreach (PresentationElementClass presentationElement in diagram.PresentationElements) { string baseClass = "DslEditorDiagrams::NodeShape"; string className = presentationElement.Name; bool hasBaseClass = false; InheritanceModifier modifier = presentationElement.InheritanceModifier; if (!(presentationElement is ShapeClass)) { baseClass = "DslEditorDiagrams::LinkShape"; } else if (presentationElement is ShapeClass) { if ((presentationElement as ShapeClass).BaseShape != null) { ShapeClass s = (presentationElement as ShapeClass).BaseShape; baseClass = s.Namespace + "." + s.Name; hasBaseClass = true; } } if (presentationElement.GeneratesDoubleDerived) { className += "Base"; modifier = InheritanceModifier.Abstract; } #line default #line hidden #line 96 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("namespace "); #line default #line hidden #line 97 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(presentationElement.Namespace)); #line default #line hidden #line 97 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\r\n{\r\n\t/// <summary>\r\n /// "); #line default #line hidden #line 100 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(className)); #line default #line hidden #line 100 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(" class representing a Shape.\r\n /// </summary>\r\n\t[DslModeling::DomainObjectId(\"" + ""); #line default #line hidden #line 102 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(presentationElement.Id.ToString("D"))); #line default #line hidden #line 102 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\")]\r\n\t"); #line default #line hidden #line 103 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(CodeGenerationUtilities.GetAccessModifier(presentationElement.AccessModifier))); #line default #line hidden #line 103 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(CodeGenerationUtilities.GetInheritanceModifier(modifier))); #line default #line hidden #line 103 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(" partial class "); #line default #line hidden #line 103 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(className)); #line default #line hidden #line 103 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(" : "); #line default #line hidden #line 103 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(baseClass)); #line default #line hidden #line 103 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\r\n\t{\r\n\t\t#region Constructors, domain class Id\r\n\r\n\t\t/// <summary>\r\n\t\t/// "); #line default #line hidden #line 108 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(presentationElement.Name)); #line default #line hidden #line 108 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(" domain class Id.\r\n\t\t/// </summary>\r\n\t\tpublic static readonly new global::System." + "Guid DomainClassId = new System.Guid(\""); #line default #line hidden #line 110 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(presentationElement.Id.ToString("D"))); #line default #line hidden #line 110 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\");\r\n"); #line default #line hidden #line 111 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" PushIndent("\t\t"); GenerateDomainClassConstructors(presentationElement, true); PopIndent(); #line default #line hidden #line 115 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t#endregion\r\n"); #line default #line hidden #line 117 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" PushIndent("\t\t"); foreach (DomainProperty property in presentationElement.Properties) { this.Write(DomainPropertyGenerator.Instance.GenerateDomainProperty(property)); } PopIndent(); if (presentationElement is ShapeClass) { ShapeClass shapeClass = presentationElement as ShapeClass; bool bTopMost = false; if (shapeClass.Parent == null) { bTopMost = true; } #line default #line hidden #line 131 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t#region Shape Properties/Methods\r\n\t\t /// <summary>\r\n /// Gets if " + "this shape is a top most item.\r\n /// </summary>\r\n public override " + "bool IsTopMostItem \r\n\t\t{ \r\n\t\t\tget\r\n\t\t\t{\r\n\t\t\t\treturn "); #line default #line hidden #line 140 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(bTopMost.ToString().ToLower())); #line default #line hidden #line 140 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(@"; } } /// <summary> /// Gets the default size of the shape. /// </summary> public override DslEditorDiagrams::SizeD DefaultSize { get { return new DslEditorDiagrams::SizeD("); #line default #line hidden #line 151 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(shapeClass.DefaultWidth)); #line default #line hidden #line 151 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(", "); #line default #line hidden #line 151 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(shapeClass.DefaultHeight)); #line default #line hidden #line 151 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(@"); } } /// <summary> /// Gets the used defined resizing behaviour value. /// </summary> /// <returns>Resizing behaviour value.</returns> public override DslEditorDiagrams::ShapeResizingBehaviour GetResizingBehaviourValue() { "); #line default #line hidden #line 161 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" if (shapeClass.IsFixedWidth && shapeClass.IsFixedHeight) { #line default #line hidden #line 164 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn DslEditorDiagrams::ShapeResizingBehaviour.Fixed;\r\n"); #line default #line hidden #line 166 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } else if (shapeClass.IsFixedWidth) { #line default #line hidden #line 170 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn DslEditorDiagrams::ShapeResizingBehaviour.FixedWidth;\r\n"); #line default #line hidden #line 172 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } else if (shapeClass.IsFixedHeight) { #line default #line hidden #line 176 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn DslEditorDiagrams::ShapeResizingBehaviour.FixedHeight;\r\n"); #line default #line hidden #line 178 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } else { #line default #line hidden #line 182 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn DslEditorDiagrams::ShapeResizingBehaviour.Normal;\r\n"); #line default #line hidden #line 184 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } #line default #line hidden #line 186 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(@" } /// <summary> /// Gets the used defined movement behaviour value. /// </summary> /// <returns>Movement behaviour value.</returns> public override DslEditorDiagrams::ShapeMovementBehaviour GetMovementBehaviourValue() { "); #line default #line hidden #line 195 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" if (shapeClass.IsRelativeChild) { if (shapeClass.RelativeChildBehaviour == RelativeChildBehaviour.PositionRelativeToParent) { #line default #line hidden #line 200 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn DslEditorDiagrams::ShapeMovementBehaviour.PositionRelativeToParent;\r\n"); #line default #line hidden #line 202 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } else if (shapeClass.RelativeChildBehaviour == RelativeChildBehaviour.PositionOnEdgeOfParent) { #line default #line hidden #line 206 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn DslEditorDiagrams::ShapeMovementBehaviour.PositionOnEdgeOfParent;\r\n"); #line default #line hidden #line 208 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } } else { #line default #line hidden #line 213 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn DslEditorDiagrams::ShapeMovementBehaviour.Normal;\r\n"); #line default #line hidden #line 215 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } #line default #line hidden #line 217 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(@" } /// <summary> /// Gets whether this shape is a relative child shape or not. /// </summary> /// <returns>True if this shape is a relative child shape. False otherwise</returns> public override bool GetIsRelativeChildShapeValue() { return " ); #line default #line hidden #line 226 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(shapeClass.IsRelativeChild.ToString().ToLower())); #line default #line hidden #line 226 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(@"; } /// <summary> /// Gets whether this shape takes part in any relationship or not. /// </summary> /// <returns>True if this shape takes part in any relationship. False otherwise</returns> public override bool GetTakesPartInRelationshipValue() { "); #line default #line hidden #line 235 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" if (hasBaseClass) { #line default #line hidden #line 238 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\tif( base.GetTakesPartInRelationshipValue() )\r\n\t\t\t\treturn true;\r\n\t\t\t\t\r\n"); #line default #line hidden #line 242 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } bool takesPart = false; foreach (PresentationElementClass pLink in diagram.PresentationElements) { if (pLink is RelationshipShapeClass) { RelationshipShapeClass rsShape = pLink as RelationshipShapeClass; DomainRelationship con = rsShape.ReferenceRelationship; if (con != null) { if (CodeGenerationUtilities.ShapeTakesPart(shapeClass, con)) { takesPart = true; } } } else if (!takesPart && pLink is MappingRelationshipShapeClass) { MappingRelationshipShapeClass rsShape = pLink as MappingRelationshipShapeClass; ReferenceRelationship con = rsShape.Source; if (con != null) { if (CodeGenerationUtilities.ShapeTakesPart(shapeClass, con.Target.RolePlayer as DomainClass)) { takesPart = true; } } con = rsShape.Target; if (con != null && !takesPart) { if (CodeGenerationUtilities.ShapeTakesPart(shapeClass, con.Target.RolePlayer as DomainClass)) { takesPart = true; } } } } #line default #line hidden #line 270 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\treturn "); #line default #line hidden #line 271 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(takesPart.ToString().ToLower())); #line default #line hidden #line 271 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(";\r\n\t\t}\r\n\t\t#endregion\r\n"); #line default #line hidden #line 274 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } #line default #line hidden #line 276 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t}\r\n"); #line default #line hidden #line 278 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" // If this class is double-derived, generate the skeleton derived class (with just the // constructors) if (presentationElement.GeneratesDoubleDerived) { #line default #line hidden #line 283 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t\t\r\n\t/// <summary>\r\n /// "); #line default #line hidden #line 285 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(presentationElement.Name)); #line default #line hidden #line 285 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(" class representing a Shape.\r\n /// </summary>\r\n\t"); #line default #line hidden #line 287 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(CodeGenerationUtilities.GetAccessModifier(presentationElement.AccessModifier))); #line default #line hidden #line 287 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(CodeGenerationUtilities.GetInheritanceModifier(presentationElement.InheritanceModifier))); #line default #line hidden #line 287 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(" partial class "); #line default #line hidden #line 287 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(presentationElement.Name)); #line default #line hidden #line 287 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(" : "); #line default #line hidden #line 287 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(presentationElement.Name)); #line default #line hidden #line 287 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("Base\r\n\t{\r\n\t\t#region Constructors\r\n"); #line default #line hidden #line 290 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" PushIndent("\t\t"); GenerateDomainClassConstructors(presentationElement, false); PopIndent(); #line default #line hidden #line 294 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("\t\t#endregion\r\n\t}\r\n"); #line default #line hidden #line 297 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } #line default #line hidden #line 299 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" this.Write("}\r\n"); #line default #line hidden #line 301 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } #line default #line hidden #line 304 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" } #line default #line hidden #line 307 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ShapesGenerator.tt" }
public override string TransformText() { this.GenerationEnvironment = null; this.Write(" \r\n"); this.Write("using DslModeling = global::Microsoft.VisualStudio.Modeling;\r\nusing DslEditorDiag" + "rams = global::Tum.PDE.ToolFramework.Modeling.Diagrams;\r\n\r\n"); #line 12 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" List <AttributedDomainElement> ruleOnElementsAdd = new List <AttributedDomainElement>(); List <AttributedDomainElement> ruleOnLinksChange = new List <AttributedDomainElement>(); List <AttributedDomainElement> ruleOnElementsDelete = new List <AttributedDomainElement>(); List <AttributedDomainElement> ruleMappingOnElementsAdd = new List <AttributedDomainElement>(); List <AttributedDomainElement> ruleMappingOnLinksChange = new List <AttributedDomainElement>(); List <AttributedDomainElement> ruleMappingOnElementsDelete = new List <AttributedDomainElement>(); foreach (DiagramClass diagram in this.MetaModel.AllDiagramClasses) { foreach (PresentationElementClass element in diagram.PresentationElements) { if (element is RelationshipShapeClass) { RelationshipShapeClass shape = element as RelationshipShapeClass; DomainRelationship con = shape.ReferenceRelationship; if (con == null) { continue; } ruleOnElementsAdd.Add(con); ruleOnLinksChange.Add(con); ruleOnElementsDelete.Add(con); } else if (element is MappingRelationshipShapeClass) { MappingRelationshipShapeClass shape = element as MappingRelationshipShapeClass; DomainClass domainClass = shape.DomainClass; ReferenceRelationship source = shape.Source; ReferenceRelationship target = shape.Target; if (domainClass != null && source != null && target != null) { if (source.Target.RolePlayer is DomainClass && target.Target.RolePlayer is DomainClass) { ruleMappingOnElementsAdd.Add(domainClass); ruleMappingOnElementsAdd.Add(source); ruleMappingOnElementsAdd.Add(target); ruleMappingOnLinksChange.Add(source); ruleMappingOnLinksChange.Add(target); ruleMappingOnElementsDelete.Add(domainClass); ruleMappingOnElementsDelete.Add(source); ruleMappingOnElementsDelete.Add(target); } } } } } MetaModel dm = this.MetaModel; #line default #line hidden this.Write("namespace "); #line 67 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Namespace)); #line default #line hidden this.Write("\r\n{\r\n"); #line 69 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" if (CodeGenerationUtilities.NeedsLinkRules(dm)) { #line default #line hidden this.Write("\t/// <summary>\r\n /// This AddRule is for monitoring link creation that we need" + " to reflect\r\n\t/// onto the diagram surface by creating its specified rs shape cl" + "ass.\r\n /// </summary>\r\n"); #line 77 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" foreach (AttributedDomainElement domainElement in ruleOnElementsAdd) { #line default #line hidden this.Write("\t[DslModeling::RuleOn(typeof("); #line 81 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(domainElement.GetFullName(true))); #line default #line hidden this.Write("), FireTime = DslModeling::TimeToFire.LocalCommit)]\r\n"); #line 82 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } #line default #line hidden this.Write(" public partial class "); #line 85 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesAdded : DslEditorDiagrams::ModelLinkAddRuleForRSShapes\r\n {\r\n\t\t///" + " <summary>\r\n /// Constructor.\r\n /// </summary>\r\n\t\tpublic "); #line 90 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesAdded() \r\n\t\t\t: base("); #line 91 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper.Instance)\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t/// <summary>\r\n /" + "// Helper class for model element creation.\r\n /// </summary>\r\n pub" + "lic partial class "); #line 98 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper : DslEditorDiagrams::ModelLinkAddRuleForRSShapes.RS" + "ShapesFactoryHelper\r\n {\r\n\t\t\tprivate static "); #line 100 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper instanceHolder = null;\r\n\r\n \t /// <summary>\r\n " + " \t /// Gets a singleton instance.\r\n \t /// </summary>\r\n \t public" + " static "); #line 105 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper Instance\r\n \t {\r\n \t get\r\n \t " + " {\r\n \t if (instanceHolder == null)\r\n \t instance" + "Holder = new "); #line 110 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write(@"ElementForShapesFactoryHelper(); return instanceHolder; } } } } /// <summary> /// This ChangeRule is for monitoring link role player changes that we need to reflect /// onto the diagram surface. /// </summary> "); #line 122 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" foreach (AttributedDomainElement domainElement in ruleOnLinksChange) { #line default #line hidden this.Write("\t[DslModeling::RuleOn(typeof("); #line 126 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(domainElement.GetFullName(true))); #line default #line hidden this.Write("), FireTime = DslModeling::TimeToFire.LocalCommit)]\r\n"); #line 127 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } #line default #line hidden this.Write(" public partial class "); #line 130 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesChanged : DslEditorDiagrams::ModelLinkRolePlayerChangeRuleForRSShape" + "s\r\n {\r\n\t\t/// <summary>\r\n /// Constructor.\r\n /// </summary>\r\n\t\tp" + "ublic "); #line 135 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesChanged() \r\n\t\t\t: base("); #line 136 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper.Instance)\r\n\t\t{\r\n\t\t}\t\r\n\t\t\r\n\t\t/// <summary>\r\n /// Hel" + "per class for model element creation.\r\n /// </summary>\r\n public pa" + "rtial class "); #line 143 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper : DslEditorDiagrams::ModelLinkRolePlayerChangeRuleForRSSha" + "pes.RolePlayerChangeHelper\r\n {\r\n\t\t\tprivate static "); #line 145 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper instanceHolder = null;\r\n\r\n \t /// <summary>\r\n \t " + " /// Gets a singleton instance.\r\n \t /// </summary>\r\n \t public static" + " "); #line 150 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper Instance\r\n \t {\r\n \t get\r\n \t {\r\n " + " \t if (instanceHolder == null)\r\n \t instanceHolder " + "= new "); #line 155 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper();\r\n\r\n \t return instanceHolder;\r\n \t " + " }\r\n \t }\t\t\r\n\t\t\r\n\t\t\t/// <summary>\r\n \t/// Constructor.\r\n \t///" + " </summary>\r\n\t\t\tpublic "); #line 164 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper() \r\n\t\t\t\t: base("); #line 165 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesAdded."); #line 165 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper.Instance,\r\n\t\t\t\t\t "); #line 166 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesDeleted."); #line 166 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper.Instance)\t\t\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}\t\r\n\r\n\t/// <summary>\r\n //" + "/ This DeleteRule is for monitoring link deletion that we need to reflect\r\n\t/// " + "onto the diagram surface by deleting its specified rs shape clas\r\n /// </summ" + "ary>\r\n"); #line 176 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" foreach (AttributedDomainElement domainElement in ruleOnElementsDelete) { #line default #line hidden this.Write("\t[DslModeling::RuleOn(typeof("); #line 180 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(domainElement.GetFullName(true))); #line default #line hidden this.Write("), FireTime = DslModeling::TimeToFire.LocalCommit)]\r\n"); #line 181 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } #line default #line hidden this.Write(" public partial class "); #line 184 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesDeleted : DslEditorDiagrams::ModelElementDeletingRuleForRSShapes\r\n " + " {\r\n\t\t/// <summary>\r\n /// Constructor.\r\n /// </summary>\r\n\t\tpublic" + " "); #line 189 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("LinkForShapesDeleted() \r\n\t\t\t: base("); #line 190 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper.Instance)\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t/// <summary>\r\n /// Helper " + "class for model element creation.\r\n /// </summary>\r\n public partia" + "l class "); #line 197 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper : DslEditorDiagrams::ModelElementDeletingRuleForRSShapes.Shap" + "eDeletionHelper\r\n {\r\n\t\t\tprivate static "); #line 199 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper instanceHolder = null;\r\n\r\n \t /// <summary>\r\n \t //" + "/ Gets a singleton instance.\r\n \t /// </summary>\r\n \t public static "); #line 204 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper Instance\r\n \t {\r\n \t get\r\n \t {\r\n \t" + " if (instanceHolder == null)\r\n \t instanceHolder = n" + "ew "); #line 209 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper();\r\n\r\n \t return instanceHolder;\r\n \t }" + "\r\n \t }\r\n\t\t}\r\n\t}\r\n\t\r\n"); #line 217 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } if (CodeGenerationUtilities.NeedsMappingLinkRules(dm)) { #line default #line hidden this.Write("\t\r\n\t/// <summary>\r\n /// This AddRule is for monitoring link creation that we n" + "eed to reflect\r\n\t/// onto the diagram surface by creating its specified rs shape" + " class.\r\n /// </summary>\r\n"); #line 226 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" foreach (AttributedDomainElement domainElement in ruleMappingOnElementsAdd) { #line default #line hidden this.Write("\t[DslModeling::RuleOn(typeof("); #line 230 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(domainElement.GetFullName(true))); #line default #line hidden this.Write("), FireTime = DslModeling::TimeToFire.LocalCommit)]\r\n"); #line 231 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } #line default #line hidden this.Write(" public partial class "); #line 234 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesAdded : DslEditorDiagrams::ModelLinkAddRuleForMappingRSShapes" + "\r\n {\r\n\t\t/// <summary>\r\n /// Constructor.\r\n /// </summary>\r\n\t\tpu" + "blic "); #line 239 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesAdded() \r\n\t\t\t: base("); #line 240 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper.Instance)\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t/// <summary>\r\n /" + "// Helper class for model element creation.\r\n /// </summary>\r\n pub" + "lic partial class "); #line 247 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper : DslEditorDiagrams::ModelLinkAddRuleForMappingRSSh" + "apes.RSShapesFactoryHelper\r\n {\r\n\t\t\tprivate static "); #line 249 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper instanceHolder = null;\r\n\r\n \t /// <summary>\r\n " + " \t /// Gets a singleton instance.\r\n \t /// </summary>\r\n \t public" + " static "); #line 254 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper Instance\r\n \t {\r\n \t get\r\n \t " + " {\r\n \t if (instanceHolder == null)\r\n \t instance" + "Holder = new "); #line 259 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write(@"ElementForShapesFactoryHelper(); return instanceHolder; } } } } /// <summary> /// This ChangeRule is for monitoring link role player changes that we need to reflect /// onto the diagram surface. /// </summary> "); #line 271 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" foreach (AttributedDomainElement domainElement in ruleMappingOnLinksChange) { #line default #line hidden this.Write("\t[DslModeling::RuleOn(typeof("); #line 275 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(domainElement.GetFullName(true))); #line default #line hidden this.Write("), FireTime = DslModeling::TimeToFire.LocalCommit)]\r\n"); #line 276 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } #line default #line hidden this.Write(" public partial class "); #line 279 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesChanged : DslEditorDiagrams::ModelLinkRolePlayerChangeRuleFor" + "MappingRSShapes\r\n {\r\n\t\t/// <summary>\r\n /// Constructor.\r\n /// <" + "/summary>\r\n\t\tpublic "); #line 284 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesChanged() \r\n\t\t\t: base("); #line 285 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper.Instance)\r\n\t\t{\r\n\t\t}\t\r\n\t\t\r\n\t\t/// <summary>\r\n /// Hel" + "per class for model element creation.\r\n /// </summary>\r\n public pa" + "rtial class "); #line 292 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper : DslEditorDiagrams::ModelLinkRolePlayerChangeRuleForMappi" + "ngRSShapes.RolePlayerChangeHelper\r\n {\r\n\t\t\tprivate static "); #line 294 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper instanceHolder = null;\r\n\r\n \t /// <summary>\r\n \t " + " /// Gets a singleton instance.\r\n \t /// </summary>\r\n \t public static" + " "); #line 299 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper Instance\r\n \t {\r\n \t get\r\n \t {\r\n " + " \t if (instanceHolder == null)\r\n \t instanceHolder " + "= new "); #line 304 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper();\r\n\r\n \t return instanceHolder;\r\n \t " + " }\r\n \t }\r\n\t\t\r\n\t\t\t/// <summary>\r\n \t/// Constructor.\r\n \t/// <" + "/summary>\r\n\t\t\tpublic "); #line 313 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("RolePlayerChangeHelper() \r\n\t\t\t\t: base("); #line 314 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesAdded."); #line 314 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ElementForShapesFactoryHelper.Instance,\r\n\t\t\t\t\t "); #line 315 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesDeleted."); #line 315 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper.Instance)\t\t\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}\t\r\n\r\n\t/// <summary>\r\n //" + "/ This DeleteRule is for monitoring link deletion that we need to reflect\r\n\t/// " + "onto the diagram surface by deleting its specified rs shape clas\r\n /// </summ" + "ary>\r\n"); #line 325 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" foreach (AttributedDomainElement domainElement in ruleMappingOnElementsDelete) { #line default #line hidden this.Write("\t[DslModeling::RuleOn(typeof("); #line 329 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(domainElement.GetFullName(true))); #line default #line hidden this.Write("), FireTime = DslModeling::TimeToFire.LocalCommit)]\r\n"); #line 330 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } #line default #line hidden this.Write(" public partial class "); #line 333 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesDeleted : DslEditorDiagrams::ModelElementDeletingRuleForMappi" + "ngRSShapes\r\n {\r\n\t\t/// <summary>\r\n /// Constructor.\r\n /// </summ" + "ary>\r\n\t\tpublic "); #line 338 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("MappingLinkForShapesDeleted() \r\n\t\t\t: base("); #line 339 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper.Instance)\r\n\t\t{\r\n\t\t}\r\n\t\t\r\n\t\t/// <summary>\r\n /// Helper " + "class for model element creation.\r\n /// </summary>\r\n public partia" + "l class "); #line 346 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper : DslEditorDiagrams::ModelElementDeletingRuleForMappingRSShap" + "es.ShapeDeletionHelper\r\n {\r\n\t\t\tprivate static "); #line 348 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper instanceHolder = null;\r\n\r\n \t /// <summary>\r\n \t //" + "/ Gets a singleton instance.\r\n \t /// </summary>\r\n \t public static "); #line 353 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper Instance\r\n \t {\r\n \t get\r\n \t {\r\n \t" + " if (instanceHolder == null)\r\n \t instanceHolder = n" + "ew "); #line 358 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden this.Write("ShapeDeletionHelper();\r\n\r\n \t return instanceHolder;\r\n \t }" + "\r\n \t }\r\n\t\t}\r\n\t}\r\n"); #line 365 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DiagramsLinkRulesGenerator.tt" } #line default #line hidden this.Write("}\r\n\r\n"); return(this.GenerationEnvironment.ToString()); }
public void GenerateResourceDictionary(MetaModel dm) { #line default #line hidden #line 10 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("<ResourceDictionary xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentat" + "ion\"\r\n xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"" + "\r\n xmlns:c=\"clr-namespace:"); #line default #line hidden #line 13 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Namespace)); #line default #line hidden #line 13 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(@".ViewModel"" xmlns:view=""clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Controls;assembly=Tum.PDE.ToolFramework.Modeling.Visualization"" xmlns:diagrams=""clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Controls.DiagramSurface;assembly=Tum.PDE.ToolFramework.Modeling.Visualization"" xmlns:dependencies=""clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Controls.Dependencies;assembly=Tum.PDE.ToolFramework.Modeling.Visualization"" xmlns:inter=""clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"" xmlns:beh=""clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Behaviors;assembly=Tum.PDE.ToolFramework.Modeling.Visualization""> <!-- This code was generated by a tool. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source=""/Tum.PDE.ToolFramework.Modeling.Visualization;component/Themes/Generic.xaml""/> "); #line default #line hidden #line 26 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" #line default #line hidden #line 27 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\t\r\n\t</ResourceDictionary.MergedDictionaries>\r\n"); #line default #line hidden #line 29 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" if (this.MetaModel.View.CreateModelTree) { #line default #line hidden #line 32 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n\t<!-- Model tree template -->\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 35 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 35 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("ModelTreeViewModel}\">\r\n <view:ModelTreeControl x:Name=\"ModelTreeviewContro" + "l\"/>\r\n </DataTemplate>\r\n\r\n"); #line default #line hidden #line 39 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } if (this.MetaModel.View.CreatePropertyGrid) { #line default #line hidden #line 43 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n <!-- Property grid template -->\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 46 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 46 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("PropertyGridViewModel}\">\r\n <view:PropertyWindowControl x:Name=\"PropertyWin" + "dow\"/>\r\n </DataTemplate>\r\n"); #line default #line hidden #line 49 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } if (this.MetaModel.View.CreateErrorList) { #line default #line hidden #line 53 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n <!-- Error list template -->\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 56 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 56 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("ErrorListViewModel}\">\r\n <view:ErrorListControl x:Name=\"ErrorList\"/>\r\n <" + "/DataTemplate>\r\n"); #line default #line hidden #line 59 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } if (this.MetaModel.View.CreateDependenciesView) { #line default #line hidden #line 63 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n\t<!-- Depenendencies list template -->\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 66 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 66 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("DependenciesViewModel}\">\r\n <view:DependenciesControl x:Name=\"DependenciesL" + "ist\"/>\r\n </DataTemplate>\t\r\n"); #line default #line hidden #line 69 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } #line default #line hidden #line 71 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n\t<!-- Search template -->\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 74 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 74 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("SearchViewModel}\">\r\n <view:SearchWindowControl x:Name=\"SearchViewWnd\"/>\r\n " + " </DataTemplate>\t\r\n\t\r\n\t<!-- Search result template -->\r\n <DataTemplate Data" + "Type=\"{x:Type c:"); #line default #line hidden #line 79 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 79 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("SearchResultViewModel}\">\r\n <view:SearchResultControl x:Name=\"SearchResultC" + "trl\"/>\r\n </DataTemplate>\t\r\n\t\r\n\t<!-- Diagram view models data templates -->\r\n"); #line default #line hidden #line 84 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" foreach (DiagramClass diagramClass in dm.AllDiagramClasses) { if (diagramClass is SpecificDependencyDiagram) { if ((diagramClass as SpecificDependencyDiagram).DomainClass != null) { #line default #line hidden #line 92 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\t<DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 93 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 93 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(diagramClass.Name)); #line default #line hidden #line 93 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("SurfaceViewModel}\">\r\n\t\t<dependencies:SpecificDependenciesViewControl/>\r\n </Dat" + "aTemplate>\t\r\n"); #line default #line hidden #line 96 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } } else if (diagramClass is DependencyDiagram) { #line default #line hidden #line 101 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\t<DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 102 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 102 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(diagramClass.Name)); #line default #line hidden #line 102 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("SurfaceViewModel}\">\r\n\t\t<dependencies:GraphDependenciesViewControl/>\r\n </DataTe" + "mplate>\t\r\n"); #line default #line hidden #line 105 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } else { if (diagramClass.IsCustom) { continue; } #line default #line hidden #line 111 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\t<DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 112 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name)); #line default #line hidden #line 112 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(diagramClass.Name)); #line default #line hidden #line 112 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(@"SurfaceViewModel}""> <ScrollViewer x:Name=""_tv_scrollviewer_"" Background=""White"" Focusable=""false"" HorizontalScrollBarVisibility=""Visible"" VerticalScrollBarVisibility=""Visible""> <diagrams:DiagramDesigner HorizontalAlignment=""Stretch"" VerticalAlignment=""Stretch"" Background=""White"" ContextMenuOptions=""{Binding Path=MenuOptions, Mode=OneWay}""> "); #line default #line hidden #line 116 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" if (this.EditorType == Tum.PDE.ToolFramework.Templates.GenerationEditorType.VSPlugin) { #line default #line hidden #line 119 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(" <diagrams:DiagramDesigner.InputBindings>\r\n <Ke" + "yBinding Command=\"{Binding Path=DeleteCommand}\" Key=\"Delete\"/>\r\n " + "</diagrams:DiagramDesigner.InputBindings>\r\n\r\n"); #line default #line hidden #line 124 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } #line default #line hidden #line 127 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(@" <diagrams:DiagramDesigner.ContextMenu> <ContextMenu ItemContainerStyleSelector=""{StaticResource ContextMenuItemStyleSelector}""/> </diagrams:DiagramDesigner.ContextMenu> <inter:Interaction.Behaviors> <beh:FrameworkElementContextMenuBehavior/> </inter:Interaction.Behaviors> </diagrams:DiagramDesigner> </ScrollViewer> </DataTemplate> "); #line default #line hidden #line 137 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } foreach (PresentationElementClass p in diagramClass.PresentationElements) { if (p is ShapeClass) { ShapeClass r = p as ShapeClass; if (!r.IsAutoGenerated) { continue; } string bindingTextBlockName = "DomainElementName"; if ((p as ShapeClass).DomainClass != null) { if (CodeGenerationUtilities.GetNameProperty((p as ShapeClass).DomainClass) == null) { bindingTextBlockName = "DomainElementFullName"; } } #line default #line hidden #line 154 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n <!-- "); #line default #line hidden #line 156 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 156 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(" template -->\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 157 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 157 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("DiagramItemViewModel}\">\r\n <Grid>\r\n <Border Name=\"Bd\" Margin=\"0\"" + " BorderThickness=\""); #line default #line hidden #line 159 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.BorderThickness.ToString())); #line default #line hidden #line 159 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" Padding=\"0\" SnapsToDevicePixels=\"True\" CornerRadius=\""); #line default #line hidden #line 159 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.BorderCornerRadius.ToString())); #line default #line hidden #line 159 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\"\r\n\t\t\t\t\tBackground=\""); #line default #line hidden #line 160 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(System.Drawing.ColorTranslator.ToHtml(r.BackgroundBrush))); #line default #line hidden #line 160 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" BorderBrush=\""); #line default #line hidden #line 160 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(System.Drawing.ColorTranslator.ToHtml(r.BorderBrush))); #line default #line hidden #line 160 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\"\r\n\t\t\t\t\tIsHitTestVisible=\""); #line default #line hidden #line 161 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.BorderIsHitTestVisible.ToString())); #line default #line hidden #line 161 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" Focusable=\""); #line default #line hidden #line 161 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.BorderFocusable.ToString())); #line default #line hidden #line 161 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\">\r\n <Border.Effect>\r\n <DropShadowEffect BlurRa" + "dius=\""); #line default #line hidden #line 163 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.BorderOuterSize.ToString())); #line default #line hidden #line 163 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" ShadowDepth=\"2\" Color=\""); #line default #line hidden #line 163 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(System.Drawing.ColorTranslator.ToHtml(r.BorderOuterBrush))); #line default #line hidden #line 163 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\"/>\r\n </Border.Effect>\r\n <TextBlock Margin=\"3\" Grid" + ".Row=\"0\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Center\" Text=\"{Binding " + "Path="); #line default #line hidden #line 165 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(bindingTextBlockName)); #line default #line hidden #line 165 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("}\" ToolTip=\"{Binding Path="); #line default #line hidden #line 165 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(bindingTextBlockName)); #line default #line hidden #line 165 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("}\" TextTrimming=\"CharacterEllipsis\"/>\r\n </Border>\r\n </Grid>\r\n " + " </DataTemplate>\r\n"); #line default #line hidden #line 169 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } else if (p is RelationshipShapeClass) { RelationshipShapeClass r = p as RelationshipShapeClass; if (!r.IsAutoGenerated) { continue; } #line default #line hidden #line 177 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n <!-- "); #line default #line hidden #line 179 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 179 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(" template -->\r\n <Style x:Key=\""); #line default #line hidden #line 180 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 180 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("PathStyle\" TargetType=\"Path\">\r\n <Setter Property=\"StrokeThickness\" Value=\"" + ""); #line default #line hidden #line 181 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.StrokeThickness.ToString())); #line default #line hidden #line 181 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\"/>\r\n <Setter Property=\"Stroke\" Value=\""); #line default #line hidden #line 182 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(System.Drawing.ColorTranslator.ToHtml(r.Stroke))); #line default #line hidden #line 182 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\"/>\r\n </Style>\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 184 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 184 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("DiagramItemLinkViewModel}\">\r\n <diagrams:DiagramDesignerItemLink StartAncho" + "rStyle=\""); #line default #line hidden #line 185 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.StartAnchorStyle.ToString())); #line default #line hidden #line 185 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" EndAnchorStyle=\""); #line default #line hidden #line 185 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.EndAnchorStyle.ToString())); #line default #line hidden #line 185 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" PathStyle=\"{StaticResource "); #line default #line hidden #line 185 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 185 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("PathStyle}\"/>\r\n </DataTemplate>\r\n"); #line default #line hidden #line 187 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } else if (p is MappingRelationshipShapeClass) { MappingRelationshipShapeClass r = p as MappingRelationshipShapeClass; if (!r.IsAutoGenerated) { continue; } #line default #line hidden #line 195 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\r\n <!-- "); #line default #line hidden #line 197 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 197 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(" template -->\r\n <Style x:Key=\""); #line default #line hidden #line 198 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 198 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("PathStyle\" TargetType=\"Path\">\r\n <Setter Property=\"StrokeThickness\" Value=\"" + ""); #line default #line hidden #line 199 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.StrokeThickness.ToString())); #line default #line hidden #line 199 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\"/>\r\n <Setter Property=\"Stroke\" Value=\""); #line default #line hidden #line 200 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(System.Drawing.ColorTranslator.ToHtml(r.Stroke))); #line default #line hidden #line 200 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\"/>\r\n </Style>\r\n <DataTemplate DataType=\"{x:Type c:"); #line default #line hidden #line 202 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 202 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("DiagramItemLinkViewModel}\">\r\n <diagrams:DiagramDesignerItemLink StartAncho" + "rStyle=\""); #line default #line hidden #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.StartAnchorStyle.ToString())); #line default #line hidden #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" EndAnchorStyle=\""); #line default #line hidden #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.EndAnchorStyle.ToString())); #line default #line hidden #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("\" PathStyle=\"{StaticResource "); #line default #line hidden #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write(this.ToStringHelper.ToStringWithCulture(r.Name)); #line default #line hidden #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("PathStyle}\"/>\r\n </DataTemplate>\r\n"); #line default #line hidden #line 205 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" } } } #line default #line hidden #line 209 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" this.Write("</ResourceDictionary>\r\n"); #line default #line hidden #line 211 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\ViewModel\WPFApplication\ResourceDictionaryGenerator.tt" }