Esempio n. 1
0
        /// <summary>
        /// Instantiates a ModelBusAdapter for the DataContractDsl model of given ModelBusReference and Root Model element
        /// </summary>
        /// <param name="reference">ModelBusReference of the model</param>
        /// <param name="rootModelElement">Root element of the model</param>
        /// <returns>A newly created ModelBusAdapter to manipulate the DSL</returns>
        protected override DslIntegration::ModelingAdapter CreateModelingAdapterInstance(DslIntegration::ModelBusReference reference, DslModeling::ModelElement rootModelElement)
		{
            if (rootModelElement as global::Microsoft.Practices.ServiceFactory.DataContracts.DataContractModel == null) throw new global::System.ArgumentException("Invalid model root passed");
            return new DataContractDslAdapter(reference, this, rootModelElement as global::Microsoft.Practices.ServiceFactory.DataContracts.DataContractModel);
		}
Esempio n. 2
0
		/// <summary>
		/// Constructor from a ModelBusReference, the adapter manager, and the root model element of the DataContractDsl model
		/// </summary>
			public DataContractDslAdapter(DslIntegration::ModelBusReference reference, DslIntegrationShell::VsModelingAdapterManager adapterManager, global::Microsoft.Practices.ServiceFactory.DataContracts.DataContractModel rootModelElement)
				: base(reference, adapterManager, rootModelElement)
			{
			}
Esempio n. 3
0
 /// <summary>
 /// Constructor from a ModelBusReference, the adapter manager, and the root model element of the CloudCoreArchitectSubProcess model
 /// </summary>
 public CloudCoreArchitectSubProcessAdapter(DslIntegration::ModelBusReference reference, DslIntegrationShell::VsModelingAdapterManager adapterManager, global::Architect.SubProcess rootModelElement)
     : base(reference, adapterManager, rootModelElement)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Get a view of the given reference
 /// </summary>
 /// <param name="reference">Refernce on the view we want to get</param>
 /// <returns>A ModelBusView of the given reference</returns>
 public override DslIntegration::ModelBusView GetView(DslIntegration::ModelBusReference reference)
 {
     return new DslIntegrationShell::StandardVsModelingDiagramView(this, reference);
 }
Esempio n. 5
0
 /// <summary>
 /// Instantiates a ModelBusAdapter for the CloudCoreArchitectProcessOverview model of given ModelBusReference and Root Model element
 /// </summary>
 /// <param name="reference">ModelBusReference of the model</param>
 /// <param name="rootModelElement">Root element of the model</param>
 /// <returns>A newly created ModelBusAdapter to manipulate the DSL</returns>
 protected override DslIntegration::ModelingAdapter CreateModelingAdapterInstance(DslIntegration::ModelBusReference reference, DslModeling::ModelElement rootModelElement)
 {
     if (rootModelElement as global::Architect.ProcessOverview.Process == null) throw new global::System.ArgumentException("Invalid model root passed");
     return new CloudCoreArchitectProcessOverviewAdapter(reference, this, rootModelElement as global::Architect.ProcessOverview.Process);
 }