Beispiel #1
0
 /// <summary>
 /// Constuctor.
 /// </summary>
 /// <param name="viewModelStore">The store this view model belongs to.</param>
 /// <param name="diagram">The Diagram this item belongs to.</param>
 /// <param name="shapeElement">Model element, that is hosted by this view model.</param>
 protected ErzAbhDependencyShapeDiagramItemViewModelBase(DslEditorViewModelData::ViewModelStore viewModelStore, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::NodeShape shapeElement)
     : base(viewModelStore, diagram, shapeElement)
 {
 }
Beispiel #2
0
        /// <summary>
        /// Creates the view model for the given node shape.
        /// </summary>
        /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
        /// <param name="diagram">Diagram surface vm.</param>
        /// <param name="nodeShape">Node shape.</param>
        /// <returns>
        /// View model of type DiagramItemElementViewModel if a view model can be created for the given element. Null otherwise.
        /// </returns>
        public override DslEditorViewModel.DiagramSurface.DiagramItemElementViewModel CreateDiagramItemViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::NodeShape nodeShape)
        {
            if (nodeShapeType == global::Tum.TestLanguage.TestShape.DomainClassId)
            {
                return(new Tum.TestLanguage.ViewModel.TestShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }


            return(null);
        }
Beispiel #3
0
 /// <summary>
 /// Constuctor.
 /// </summary>
 /// <param name="viewModelStore">The store this view model belongs to.</param>
 /// <param name="diagram">The Diagram this item belongs to.</param>
 /// <param name="shapeElement">Model element, that is hosted by this view model.</param>
 public DisziplinDependencyShapeDiagramItemViewModel(DslEditorViewModelData::ViewModelStore viewModelStore, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::NodeShape shapeElement)
     : base(viewModelStore, diagram, shapeElement)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Constuctor.
 /// </summary>
 /// <param name="viewModelStore">The store this view model belongs to.</param>
 /// <param name="diagram">The Diagram this item belongs to.</param>
 /// <param name="shapeElement">Model element, that is hosted by this view model.</param>
 protected ReferenceShapeDiagramItemLinkViewModelBase(DslEditorViewModelData::ViewModelStore viewModelStore, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::LinkShape shapeElement)
     : base(viewModelStore, diagram, shapeElement)
 {
 }
Beispiel #5
0
 /// <summary>
 /// Creates the view model for the given link shape.
 /// </summary>
 /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
 /// <param name="diagram">Diagram surface vm.</param>
 /// <param name="nodeShape">Link shape.</param>
 /// <returns>
 /// View model of type BaseDiagramItemLinkViewModel if a view model can be created for the given element. Null otherwise.</returns>
 public override DslEditorViewModel.DiagramSurface.BaseDiagramItemLinkViewModel CreateDiagramLinkViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::LinkShape nodeShape)
 {
     return(null);
 }
Beispiel #6
0
        /// <summary>
        /// Creates the view model for the given node shape.
        /// </summary>
        /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
        /// <param name="diagram">Diagram surface vm.</param>
        /// <param name="nodeShape">Node shape.</param>
        /// <returns>
        /// View model of type DiagramItemElementViewModel if a view model can be created for the given element. Null otherwise.
        /// </returns>
        public override DslEditorViewModel.DiagramSurface.DiagramItemElementViewModel CreateDiagramItemViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::NodeShape nodeShape)
        {
            if (nodeShapeType == global::Tum.VModellXT.RolleDependencyShape.DomainClassId)
            {
                return(new Tum.VModellXT.ViewModel.RolleDependencyShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.DisziplinDependencyShape.DomainClassId)
            {
                return(new Tum.VModellXT.ViewModel.DisziplinDependencyShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.ErzAbhDependencyShape.DomainClassId)
            {
                return(new Tum.VModellXT.ViewModel.ErzAbhDependencyShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.AblaufbausteinShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.AblaufbausteinShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.StartpunktShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.StartpunktShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.EndepunktShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.EndepunktShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.AblaufentscheidungspunktShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.AblaufentscheidungspunktShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.AblaufbausteinpunktShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.AblaufbausteinpunktShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.SplitShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.SplitShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.SplitEingangShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.SplitEingangShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.SplitAusgangShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.SplitAusgangShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.JoinShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.JoinShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.JoinEingangShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.JoinEingangShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.JoinAusgangShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.JoinAusgangShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.AblaufbausteinspezifikationShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.AblaufbausteinspezifikationShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }


            return(null);
        }
Beispiel #7
0
 /// <summary>
 /// Constuctor.
 /// </summary>
 /// <param name="viewModelStore">The store this view model belongs to.</param>
 /// <param name="diagram">The Diagram this item belongs to.</param>
 /// <param name="shapeElement">Model element, that is hosted by this view model.</param>
 public EmbeddingShapeDiagramItemLinkViewModel(DslEditorViewModelData::ViewModelStore viewModelStore, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::LinkShape shapeElement)
     : base(viewModelStore, diagram, shapeElement)
 {
 }
Beispiel #8
0
        /// <summary>
        /// Creates the view model for the given link shape.
        /// </summary>
        /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
        /// <param name="diagram">Diagram surface vm.</param>
        /// <param name="nodeShape">Link shape.</param>
        /// <returns>
        /// View model of type BaseDiagramItemLinkViewModel if a view model can be created for the given element. Null otherwise.</returns>
        public override DslEditorViewModel.DiagramSurface.BaseDiagramItemLinkViewModel CreateDiagramLinkViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::LinkShape nodeShape)
        {
            if (nodeShapeType == global::Tum.FamilyTreeDSL.ParentOfShape.DomainClassId)
            {
                return(new Tum.FamilyTreeDSL.ViewModel.ParentOfShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.FamilyTreeDSL.MarriedToShape.DomainClassId)
            {
                return(new Tum.FamilyTreeDSL.ViewModel.MarriedToShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }


            return(null);
        }
Beispiel #9
0
        /// <summary>
        /// Creates the view model for the given link shape.
        /// </summary>
        /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
        /// <param name="diagram">Diagram surface vm.</param>
        /// <param name="nodeShape">Link shape.</param>
        /// <returns>
        /// View model of type BaseDiagramItemLinkViewModel if a view model can be created for the given element. Null otherwise.</returns>
        public override DslEditorViewModel.DiagramSurface.BaseDiagramItemLinkViewModel CreateDiagramLinkViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::LinkShape nodeShape)
        {
            if (nodeShapeType == global::Tum.VModellXT.Dynamik.AblaufbausteinpunktRAblaufbausteinspezShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.AblaufbausteinpunktRAblaufbausteinspezShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.AblaufbausteinRAblaufbausteinspezShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.AblaufbausteinRAblaufbausteinspezShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.VModellXT.Dynamik.UebergangShape.DomainClassId)
            {
                return(new Tum.VModellXT.Dynamik.ViewModel.UebergangShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }


            return(null);
        }
Beispiel #10
0
        /// <summary>
        /// Creates the view model for the given link shape.
        /// </summary>
        /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
        /// <param name="diagram">Diagram surface vm.</param>
        /// <param name="nodeShape">Link shape.</param>
        /// <returns>
        /// View model of type BaseDiagramItemLinkViewModel if a view model can be created for the given element. Null otherwise.</returns>
        public override DslEditorViewModel.DiagramSurface.BaseDiagramItemLinkViewModel CreateDiagramLinkViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::LinkShape nodeShape)
        {
            if (nodeShapeType == global::Tum.PDE.ModelingDSL.ReferenceShape.DomainClassId)
            {
                return(new Tum.PDE.ModelingDSL.ViewModel.ReferenceShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.PDE.ModelingDSL.EmbeddingShape.DomainClassId)
            {
                return(new Tum.PDE.ModelingDSL.ViewModel.EmbeddingShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }


            return(null);
        }
 /// <summary>
 /// Constuctor.
 /// </summary>
 /// <param name="viewModelStore">The store this view model belongs to.</param>
 /// <param name="diagram">The Diagram this item belongs to.</param>
 /// <param name="shapeElement">Model element, that is hosted by this view model.</param>
 public PersonShapeDiagramItemViewModel(DslEditorViewModelData::ViewModelStore viewModelStore, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::NodeShape shapeElement)
     : base(viewModelStore, diagram, shapeElement)
 {
 }
Beispiel #12
0
        /// <summary>
        /// Creates the view model for the given node shape.
        /// </summary>
        /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
        /// <param name="diagram">Diagram surface vm.</param>
        /// <param name="nodeShape">Node shape.</param>
        /// <returns>
        /// View model of type DiagramItemElementViewModel if a view model can be created for the given element. Null otherwise.
        /// </returns>
        public override DslEditorViewModel.DiagramSurface.DiagramItemElementViewModel CreateDiagramItemViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::NodeShape nodeShape)
        {
            if (nodeShapeType == global::Tum.StateMachineDSL.StateShape.DomainClassId)
            {
                return(new Tum.StateMachineDSL.ViewModel.StateShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.StateMachineDSL.StartStateShape.DomainClassId)
            {
                return(new Tum.StateMachineDSL.ViewModel.StartStateShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }

            if (nodeShapeType == global::Tum.StateMachineDSL.EndStateShape.DomainClassId)
            {
                return(new Tum.StateMachineDSL.ViewModel.EndStateShapeDiagramItemViewModel(this.Store, diagram, nodeShape));
            }


            return(null);
        }
Beispiel #13
0
        /// <summary>
        /// Creates the view model for the given link shape.
        /// </summary>
        /// <param name="nodeShapeType">Shape type for which the view model is to be created.</param>
        /// <param name="diagram">Diagram surface vm.</param>
        /// <param name="nodeShape">Link shape.</param>
        /// <returns>
        /// View model of type BaseDiagramItemLinkViewModel if a view model can be created for the given element. Null otherwise.</returns>
        public override DslEditorViewModel.DiagramSurface.BaseDiagramItemLinkViewModel CreateDiagramLinkViewModel(System.Guid nodeShapeType, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::LinkShape nodeShape)
        {
            if (nodeShapeType == global::Tum.StateMachineDSL.TransitionShape.DomainClassId)
            {
                return(new Tum.StateMachineDSL.ViewModel.TransitionShapeDiagramItemLinkViewModel(this.Store, diagram, nodeShape));
            }


            return(null);
        }
 /// <summary>
 /// Constuctor.
 /// </summary>
 /// <param name="viewModelStore">The store this view model belongs to.</param>
 /// <param name="diagram">The Diagram this item belongs to.</param>
 /// <param name="shapeElement">Model element, that is hosted by this view model.</param>
 protected DomainClass2ShapeDiagramItemViewModelBase(DslEditorViewModelData::ViewModelStore viewModelStore, DslEditorViewDiagrams::DiagramSurfaceViewModel diagram, DslEditorDiagrams::NodeShape shapeElement)
     : base(viewModelStore, diagram, shapeElement)
 {
 }