protected virtual void CreateEditorViewModelForVModellvarianteRefRole(System.Collections.Generic.List<DslEditorViewModelPGrid::PropertyGridEditorViewModel> collection) { Tum.PDE.ToolFramework.Modeling.Visualization.ViewModel.PropertyGrid.UnaryRoleEditorViewModel editor = new Tum.PDE.ToolFramework.Modeling.Visualization.ViewModel.PropertyGrid.UnaryRoleEditorViewModel(this.ViewModelStore, this.Store.DomainDataDirectory.GetDomainRelationship(global::Tum.VModellXT.ReferenzmodellReferencesVModellvariante.DomainClassId), global::Tum.VModellXT.ReferenzmodellReferencesVModellvariante.ReferenzmodellDomainRoleId); editor.PropertyName = "VModellvarianteRef"; editor.PropertyDisplayName = VModellXTDomainModel.SingletonResourceManager.GetString("Tum.VModellXT.ReferenzmodellReferencesVModellvariante/Referenzmodell.PropertyDisplayName"); editor.PropertyDescription = VModellXTDomainModel.SingletonResourceManager.GetString("Tum.VModellXT.ReferenzmodellReferencesVModellvariante/VModellvariante.Description"); editor.PropertyCategory = ""; editor.IsPropertyRequired = true; editor.IsPropertyReadOnly = false; collection.Add(editor); }
protected virtual void CreateEditorViewModelForElementTypeRole(System.Collections.Generic.List<DslEditorViewModelPGrid::PropertyGridEditorViewModel> collection) { Tum.PDE.ToolFramework.Modeling.Visualization.ViewModel.PropertyGrid.UnaryRoleEditorViewModel editor = new Tum.PDE.ToolFramework.Modeling.Visualization.ViewModel.PropertyGrid.UnaryRoleEditorViewModel(this.ViewModelStore, this.Store.DomainDataDirectory.GetDomainRelationship(global::Tum.PDE.ModelingDSL.DomainElementReferencesDEType.DomainClassId), global::Tum.PDE.ModelingDSL.DomainElementReferencesDEType.DomainElementDomainRoleId); editor.PropertyName = "ElementType"; editor.PropertyDisplayName = PDEModelingDSLDomainModel.SingletonResourceManager.GetString("Tum.PDE.ModelingDSL.DomainElementReferencesDEType/DomainElement.PropertyDisplayName"); editor.PropertyDescription = PDEModelingDSLDomainModel.SingletonResourceManager.GetString("Tum.PDE.ModelingDSL.DomainElementReferencesDEType/DEType.Description"); editor.PropertyCategory = ""; editor.IsPropertyRequired = true; editor.IsPropertyReadOnly = false; collection.Add(editor); }