Esempio n. 1
0
/*
 * private void GenerateClsCompliantAttribute(AccessModifier modifier)
 * {
 *      if(modifier==AccessModifier.Public)
 *      {
 *
 *
 #line default
 #line hidden
 *
 #line 205 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\Utilities.tt"
 * this.Write("[global::System.CLSCompliant(true)]\r\n");
 *
 *
 #line default
 #line hidden
 *
 #line 207 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\Utilities.tt"
 *
 *      }
 * }
 */

        public System.Collections.Generic.IEnumerable <string> GetRequiredModelsList(MetaModel library)
        {
            System.Collections.Generic.List <string> modelNames = new System.Collections.Generic.List <string>();

            // Every model uses "Core"
            modelNames.Add("global::Microsoft.VisualStudio.Modeling.CoreDomainModel");

            List <MetaModel> models = CodeGenerationUtilities.GetAllLibraries(library);

            foreach (MetaModel importedModel in models)
            {
                modelNames.Add(importedModel.GetFullName(true) + "DomainModel");
            }

            /*
             * if (CodeGenerationUtilities.DefinesDiagramElements(library))
             * {
             *      modelNames.Add("global::Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel");
             * }
             *
             *
             * foreach(DslLibrary importedLib in library.AllLibraries)
             * {
             *      modelNames.Add(importedLib.GetFullName(true) + "DomainModel");
             * }*/

            return(modelNames.Distinct());
        }
        public void GenerateDocumentData(MetaModel dm)
        {
        #line default
        #line hidden

        #line 19 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("namespace ");


        #line default
        #line hidden

        #line 20 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Namespace));


        #line default
        #line hidden

        #line 20 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("\r\n{\r\n\t/// <summary>\r\n\t/// Double-derived class to allow easier code customization" +
                       ".\r\n\t/// </summary>\r\n\tpublic partial class ");


        #line default
        #line hidden

        #line 25 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 25 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DocumentData : ");


        #line default
        #line hidden

        #line 25 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 25 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DocumentDataBase\r\n\t{\r\n\t\t#region Constructor\r\n\t\t/// <summary>\r\n\t\t/// Constructs a " +
                       "new ");


        #line default
        #line hidden

        #line 29 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 29 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DocumentData.\r\n\t\t/// </summary>\t\r\n\t\tpublic ");


        #line default
        #line hidden

        #line 31 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 31 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"DocumentData() : base()
		{

		}
		#endregion
		
		/*
		#region Singleton Instance
        /// <summary>
        /// Singleton instance.
        /// </summary>
        [global::System.Diagnostics.DebuggerBrowsable(global::System.Diagnostics.DebuggerBrowsableState.Never)] // Will trigger creation otherwise.
        public static DslEditorModeling::ModelData Instance
        {
            [global::System.Diagnostics.DebuggerStepThrough]
            get
            {
                if( modelDatainstance == null )
				{
					modelDatainstance = new "                    );


        #line default
        #line hidden

        #line 50 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 50 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DocumentData();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn modelDatainstance;\r\n            }\r\n     " +
                       "   }\r\n        #endregion*/\r\n\t}\r\n\t\r\n\t/// <summary>\r\n\t/// Class which represents a" +
                       " ");


        #line default
        #line hidden

        #line 60 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 60 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(" document in memory.\r\n\t/// </summary>\r\n\tpublic abstract partial class ");


        #line default
        #line hidden

        #line 62 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 62 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"DocumentDataBase : DslEditorModeling::ModelData
	{
		/// <summary>
		/// Singleton instance.
        /// </summary>
        protected static DslEditorModeling::ModelData modelDatainstance;
		
		#region Constructor
		/// <summary>
		/// Constructs a new "        );


        #line default
        #line hidden

        #line 71 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 71 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DocumentDataBase.\r\n\t\t/// </summary>\t\r\n\t\t[global::System.Diagnostics.CodeAnalysis." +
                       "SuppressMessageAttribute(\"Microsoft.Usage\", \"CA2214:DoNotCallOverridableMethodsI" +
                       "nConstructors\")]\r\n\t\tprotected ");


        #line default
        #line hidden

        #line 74 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.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\DocumentDataGenerator.tt"
            this.Write(@"DocumentDataBase() : base(true, false)
		{
		}
		#endregion

		#region Initialization
		///<Summary>
		/// Defines a partial method that will be called from the constructor to
		/// allow any necessary serialization setup to be done.
		///</Summary>
		///<remarks>
		/// For a DSL created with the DSL Designer wizard, an implementation of this 
		/// method will be generated in the GeneratedCode\SerializationHelper.cs class.
		///</remarks>
		partial void InitializeSerialization(DslModeling::Store store);

        /// <summary>
        /// Initializes services.
        /// </summary>
        protected override void InitializeServices()
		{			
			if( "            );


        #line default
        #line hidden

        #line 95 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 95 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DomainModelExtensionServices.Instance == null )\r\n\t\t\t\tthrow new System.ArgumentNul" +
                       "lException(\"ExtensionServices are not initialized\");\r\n\t\t\t\t\r\n\t\t\tif( ");


        #line default
        #line hidden

        #line 98 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 98 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"ValidationController.Instance == null )
				throw new System.ArgumentNullException(""ValidationController is not initialized"");
		}

		/// <summary>
        /// Initializes the model contexts collection.
        /// </summary>
        protected override void InitializeModelContexts()
		{
");


        #line default
        #line hidden

        #line 107 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"

            foreach (BaseModelContext modelContext in this.MetaModel.ModelContexts)
            {
                bool bAdd = false;
                if (modelContext is ModelContext)
                {
                    bAdd = true;
                }
                else if (modelContext is ExternModelContext)
                {
                    ExternModelContext e = modelContext as ExternModelContext;
                    if (e.ModelContext != null)
                    {
                        bAdd = true;
                    }
                }
                if (!bAdd)
                {
                    continue;
                }



        #line default
        #line hidden

        #line 122 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("\t\t\t\r\n\t\t\t// ");


        #line default
        #line hidden

        #line 124 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 124 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("\r\n\t\t\tModelContext");


        #line default
        #line hidden

        #line 125 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 125 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(" = new ");


        #line default
        #line hidden

        #line 125 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 125 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("ModelContext(this);\r\n\t\t\tthis.availableModelContexts.Add(ModelContext");


        #line default
        #line hidden

        #line 126 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 126 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(");\r\n");


        #line default
        #line hidden

        #line 127 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"

                if (modelContext.IsDefault)
                {
        #line default
        #line hidden

        #line 130 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                    this.Write("\t\t\tthis.currentModelContext = ModelContext");


        #line default
        #line hidden

        #line 131 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                    this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 131 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                    this.Write(";\r\n");


        #line default
        #line hidden

        #line 132 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                }
            }


        #line default
        #line hidden

        #line 135 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"		}	
		
        /// <summary>
        /// Serialization initialization.
        /// </summary>
        protected override void InitializeSerializationForStore(DslEditorModeling.DomainModelStore store)
		{
			// Call the partial method to allow any required serialization setup to be done.
			this.InitializeSerialization(store);
			
			// initiliaze serialization for the domains model
			"            );


        #line default
        #line hidden

        #line 147 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 147 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DiagramsDSLSerializationHelper.Instance.InitializeSerialization(store);\r\n\t\t\t\r\n\t\t\t" +
                       "// initialize serializers directory\r\n\t\t\t");


        #line default
        #line hidden

        #line 150 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 150 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("SerializationHelper.InitializeSerializers(store.SerializerDirectory, store.Domain" +
                       "DataDirectory);\r\n\t\t}\r\n\t\t#endregion\r\n");


        #line default
        #line hidden

        #line 153 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"

            foreach (BaseModelContext modelContext in this.MetaModel.ModelContexts)
            {
                bool bAdd = false;
                if (modelContext is ModelContext)
                {
                    bAdd = true;
                }
                else if (modelContext is ExternModelContext)
                {
                    ExternModelContext e = modelContext as ExternModelContext;
                    if (e.ModelContext != null)
                    {
                        bAdd = true;
                    }
                }
                if (!bAdd)
                {
                    continue;
                }


        #line default
        #line hidden

        #line 167 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("\r\n\t\t/// <summary>\r\n        /// Gets the model context ");


        #line default
        #line hidden

        #line 170 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 170 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(".\r\n        /// </summary>\r\n\t\tpublic ");


        #line default
        #line hidden

        #line 172 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 172 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("ModelContext ModelContext");


        #line default
        #line hidden

        #line 172 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(modelContext.Name));


        #line default
        #line hidden

        #line 172 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("\r\n\t\t{\r\n\t\t\tget;\r\n\t\t\tprivate set;\r\n\t\t}\r\n");


        #line default
        #line hidden

        #line 177 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            }


        #line default
        #line hidden

        #line 179 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"
		#region Properties
		/// <summary>
        /// Gets the DomainModel's ResourceManager.
        /// </summary>
        public override global::System.Resources.ResourceManager ResourceManager
        {
            get
            {
                return ");


        #line default
        #line hidden

        #line 189 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 189 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"DomainModel.SingletonResourceManager;
            }
        }
		#endregion
		
		#region Methods
		/// <summary>
        /// Returns a collection of domain models to load into the store.
        /// </summary>
        protected override System.Type[] GetDomainModels()
        {
			return new System.Type[]{
				typeof(DslEditorDiagrams::DiagramsDSLDomainModel),
				typeof(DslEditorModeling::DomainModelDslEditorModeling),
				typeof("                );


        #line default
        #line hidden

        #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 203 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("DomainModel),\r\n");


        #line default
        #line hidden

        #line 204 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"

            List <MetaModel> models = CodeGenerationUtilities.GetAllLibraries(this.MetaModel);
            foreach (MetaModel importedModel in models)
            {
        #line default
        #line hidden

        #line 208 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("\t\t\t\ttypeof(");


        #line default
        #line hidden

        #line 209 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(importedModel.GetFullName(true)));


        #line default
        #line hidden

        #line 209 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
                this.Write("DomainModel),\r\n");


        #line default
        #line hidden

        #line 210 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            }


        #line default
        #line hidden

        #line 212 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write("\t\t\t};\r\n        }\r\n\t\t\r\n\t\t/// <summary>\r\n        /// Resets the current document da" +
                       "ta.\r\n        /// </summary>\r\n        public override void Reset()\r\n        {\r\n\t\t" +
                       "\tbase.Reset();\r\n\t\t\t\r\n\t\t\t");


        #line default
        #line hidden

        #line 223 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 223 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"DomainModelIdProvider.Instance.Reset();
        }
		
		/// <summary>
        /// Gets the services, which belong to the current domain model.
        /// </summary>
        /// <returns>DomainModel services.</returns>
        public override DslEditorModeling::IDomainModelServices GetDomainModelServices()
		{
			return "            );


        #line default
        #line hidden

        #line 232 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(dm.Name));


        #line default
        #line hidden

        #line 232 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
            this.Write(@"DomainModelServices.Instance;
		}

        /// <summary>
        /// Gets the services, which are specific to the current domain model that the given element belongs to.
        /// </summary>
		/// <param name=""element"">Element.</param>
        /// <returns>DomainModel services</returns>
        public override DslEditorModeling::IDomainModelServices GetDomainModelServices(DslEditorModeling::IDomainModelOwnable element)
		{
			return element.GetDomainModelServices();	
		}
		
        /// <summary>
        /// Dispose method.
        /// </summary>
        /// <param name=""disposing""></param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                modelDatainstance = null;
            }
			
			base.Dispose(disposing);
        }		
		#endregion
		
		#region Partition Support
		/// <summary>
		/// Get the Partition where model data will be loaded into.
		/// Base implementation returns the default partition of the store.
		/// </summary>
		public override DslModeling::Partition GetModelPartition()
		{
			if (this.Store != null)
			{
				return this.Store.DefaultPartition;
			}
			
			return null;
		}
		#endregion
	}
}
");


        #line default
        #line hidden

        #line 277 "J:\Uni\CC Processes\Werkzeuge\PDE 2\Tum.PDE.ToolFramework\Tum.PDE.ToolFramework.Templates\DocumentDataGenerator.tt"
        }