/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Disziplin.NameDomainPropertyId) { OnPropertyChanged("Element_Name"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Disziplin.NummerDomainPropertyId) { OnPropertyChanged("Element_Nummer"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Disziplin.SinnUndZweckDomainPropertyId) { OnPropertyChanged("Element_SinnUndZweck"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_VersionDomainPropertyId) { OnPropertyChanged("Element_Intern_Version"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_ConsistentToVersionDomainPropertyId) { OnPropertyChanged("Element_Intern_ConsistentToVersion"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_RefersToIdDomainPropertyId) { OnPropertyChanged("Element_Intern_RefersToId"); } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.ErzeugendeAbhaengigkeit.NameDomainPropertyId) { OnPropertyChanged("Element_Name"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.ErzeugendeAbhaengigkeit.NummerDomainPropertyId) { OnPropertyChanged("Element_Nummer"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.ErzeugendeAbhaengigkeit.BeschreibungDomainPropertyId) { OnPropertyChanged("Element_Beschreibung"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_VersionDomainPropertyId) { OnPropertyChanged("Element_Intern_Version"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_ConsistentToVersionDomainPropertyId) { OnPropertyChanged("Element_Intern_ConsistentToVersion"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_RefersToIdDomainPropertyId) { OnPropertyChanged("Element_Intern_RefersToId"); } }
public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.DomainProperty.Id == global::Microsoft.Example.Circuits.NamedElement.NameDomainPropertyId) { DslDiagrams::Decorator decorator = global::Microsoft.Example.Circuits.ResistorShape.FindResistorShapeDecorator("NameDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Resistor.DomainClassId); } decorator = global::Microsoft.Example.Circuits.JunctionShape.FindJunctionShapeDecorator("NameDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Junction.DomainClassId); } decorator = global::Microsoft.Example.Circuits.TransistorShape.FindTransistorShapeDecorator("NameDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Transistor.DomainClassId); } decorator = global::Microsoft.Example.Circuits.CapacitorShape.FindCapacitorShapeDecorator("NameDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Capacitor.DomainClassId); } } }
internal static void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e, bool repaintOnly) { if(e==null) throw new global::System.ArgumentNullException("e"); if(e.ModelElement is global::Company.OrmLanguage.Property && e.DomainProperty.Id == global::Company.OrmLanguage.Property.NameDomainPropertyId) { global::System.Collections.IEnumerable elements = CompartmentItemAddRule.GetEntityElementForEntityShapeProperties((global::Company.OrmLanguage.Property)e.ModelElement); CompartmentItemAddRule.UpdateCompartments(elements, typeof(global::Company.OrmLanguage.EntityShape), "Properties", repaintOnly); } }
private void NamePropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (args.NewValue != null) { this.ElementFullName = args.NewValue.ToString() + " (Pet)"; } else { this.ElementFullName = "Pet"; } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.PDE.VSPluginDSL.DomainClass2.NameDomainPropertyId) { OnPropertyChanged("Element_Name"); } }
internal static void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e, bool repaintOnly) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.ModelElement is global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.Attribute && e.DomainProperty.Id == global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.Attribute.NameDomainPropertyId) { global::System.Collections.IEnumerable elements = CompartmentItemAddRule.GetEntityTypeForBarkerEntityShapeAttributesCompartment((global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.Attribute)e.ModelElement); CompartmentItemAddRule.UpdateCompartments(elements, typeof(global::ORMSolutions.ORMArchitect.Views.BarkerERView.BarkerEntityShape), "AttributesCompartment", repaintOnly); } }
internal static void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e, bool repaintOnly) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.ModelElement is global::ORMSolutions.ORMArchitect.RelationalModels.ConceptualDatabase.Column && e.DomainProperty.Id == global::ORMSolutions.ORMArchitect.RelationalModels.ConceptualDatabase.Column.EditNameDomainPropertyId) { global::System.Collections.IEnumerable elements = CompartmentItemAddRule.GetTableForTableShapeColumnsCompartment((global::ORMSolutions.ORMArchitect.RelationalModels.ConceptualDatabase.Column)e.ModelElement); CompartmentItemAddRule.UpdateCompartments(elements, typeof(global::ORMSolutions.ORMArchitect.Views.RelationalView.TableShape), "ColumnsCompartment", repaintOnly); } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.StateMachineDSL.Transition.ConditionDomainPropertyId) { OnPropertyChanged("Element_Condition"); } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.TestLanguage.Test.NameDomainPropertyId) { OnPropertyChanged("Element_Name"); } if (args.DomainProperty.Id == global::Tum.TestLanguage.Test.NumberDomainPropertyId) { OnPropertyChanged("Element_Number"); } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.PDE.ModelingDSL.ReferenceRelationship.SourceMultiplicityDomainPropertyId) { OnPropertyChanged("Element_SourceMultiplicity"); } if (args.DomainProperty.Id == global::Tum.PDE.ModelingDSL.ReferenceRelationship.TargetMultiplicityDomainPropertyId) { OnPropertyChanged("Element_TargetMultiplicity"); } }
public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.DomainProperty.Id == global::AppDevUnited.TaskFlowDSLSample.Flow.GuardDomainPropertyId) { DslDiagrams::Decorator decorator = global::AppDevUnited.TaskFlowDSLSample.FlowConnector.FindFlowConnectorDecorator("Guard"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::AppDevUnited.TaskFlowDSLSample.Flow.DomainClassId); } } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.PDE.ModelingDSL.NamedDomainElement.NameDomainPropertyId) { OnPropertyChanged("Element_Name"); } if (args.DomainProperty.Id == global::Tum.PDE.ModelingDSL.NamedDomainElement.DescriptionDomainPropertyId) { OnPropertyChanged("Element_Description"); } }
public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.DomainProperty.Id == global::Company.SlideShowDesigner.Photo.NameDomainPropertyId) { DslDiagrams::Decorator decorator = global::Company.SlideShowDesigner.PhotoShape.FindPhotoShapeDecorator("NameDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Company.SlideShowDesigner.Photo.DomainClassId); } } }
public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.DomainProperty.Id == global::Ufba.Ev.OptionHasFunctions.VarDomainPropertyId) { DslDiagrams::Decorator decorator = global::Ufba.Ev.OptionConnector.FindOptionConnectorDecorator("Var"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Ufba.Ev.OptionHasFunctions.DomainClassId); } } }
internal static void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e, bool repaintOnly) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.ModelElement is global::Ufba.Ev.Type && e.DomainProperty.Id == global::Ufba.Ev.Type.NameDomainPropertyId) { global::System.Collections.IEnumerable elements = CompartmentItemAddRule.GetOptionForOptionShapeActions((global::Ufba.Ev.Type)e.ModelElement); CompartmentItemAddRule.UpdateCompartments(elements, typeof(global::Ufba.Ev.OptionShape), "Actions", repaintOnly); } if (e.ModelElement is global::Ufba.Ev.Property && e.DomainProperty.Id == global::Ufba.Ev.Property.NameDomainPropertyId) { global::System.Collections.IEnumerable elements = CompartmentItemAddRule.GetOptionForOptionShapeProperties((global::Ufba.Ev.Property)e.ModelElement); CompartmentItemAddRule.UpdateCompartments(elements, typeof(global::Ufba.Ev.OptionShape), "Properties", repaintOnly); } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Rolle.NameDomainPropertyId) { OnPropertyChanged("Element_Name"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Rolle.BeschreibungDomainPropertyId) { OnPropertyChanged("Element_Beschreibung"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Rolle.AufgabenUndBefugnisseDomainPropertyId) { OnPropertyChanged("Element_AufgabenUndBefugnisse"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Rolle.FaehigkeitsprofilDomainPropertyId) { OnPropertyChanged("Element_Faehigkeitsprofil"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Rolle.RollenbesetzungDomainPropertyId) { OnPropertyChanged("Element_Rollenbesetzung"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Statik.Rolle.KlasseDomainPropertyId) { OnPropertyChanged("Element_Klasse"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_VersionDomainPropertyId) { OnPropertyChanged("Element_Intern_Version"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_ConsistentToVersionDomainPropertyId) { OnPropertyChanged("Element_Intern_ConsistentToVersion"); } if (args.DomainProperty.Id == global::Tum.VModellXT.Basis.BaseElement.Intern_RefersToIdDomainPropertyId) { OnPropertyChanged("Element_Intern_RefersToId"); } }
/// <summary> /// Called whenever properties change. /// </summary> /// <param name="args"></param> protected virtual void OnElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs args) { if (this.IsDisposed) { return; } if (args.DomainProperty.Id == global::Tum.FamilyTreeDSL.Person.NameDomainPropertyId) { OnPropertyChanged("Element_Name"); } if (args.DomainProperty.Id == global::Tum.FamilyTreeDSL.Person.GenderDomainPropertyId) { OnPropertyChanged("Element_Gender"); } if (args.DomainProperty.Id == global::Tum.FamilyTreeDSL.Person.HobbiesDomainPropertyId) { OnPropertyChanged("Element_Hobbies"); } }
public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.DomainProperty.Id == global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.aCardMinDomainPropertyId) { DslDiagrams::Decorator decorator = global::IPS_GT16.XCXABGProyectoIPS.EntidadRelacion.FindEntidadRelacionDecorator("CardMin"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.DomainClassId); } } else if (e.DomainProperty.Id == global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.bCardMaxDomainPropertyId) { DslDiagrams::Decorator decorator = global::IPS_GT16.XCXABGProyectoIPS.EntidadRelacion.FindEntidadRelacionDecorator("CardMax"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.DomainClassId); } } }
public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.DomainProperty.Id == global::Microsoft.Gadgeteer.Designer.Module.NameDomainPropertyId) { DslDiagrams::Decorator decorator = global::Microsoft.Gadgeteer.Designer.ModuleShape.FindModuleShapeDecorator("LabelDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Gadgeteer.Designer.Module.DomainClassId); } } else if (e.DomainProperty.Id == global::Microsoft.Gadgeteer.Designer.Module.TypeDomainPropertyId) { DslDiagrams::Decorator decorator = global::Microsoft.Gadgeteer.Designer.ModuleShape.FindModuleShapeDecorator("TypeDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Gadgeteer.Designer.Module.DomainClassId); } } }
public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { if (e == null) { throw new global::System.ArgumentNullException("e"); } if (e.DomainProperty.Id == global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadIzq.cardinalidadDomainPropertyId) { DslDiagrams::Decorator decorator = global::UPM_IPS.RAARMAPMCWeberMDD.RelIzq.FindRelIzqDecorator("NameDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadIzq.DomainClassId); } } else if (e.DomainProperty.Id == global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadDer.cardinalidadDomainPropertyId) { DslDiagrams::Decorator decorator = global::UPM_IPS.RAARMAPMCWeberMDD.RelDer.FindRelDerDecorator("NameDecorator"); if (decorator != null) { decorator.UpdateDecoratorHostShapes(e.ModelElement, global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadDer.DomainClassId); } } }
/// <summary> /// Called when an element is changed /// </summary> /// <param name="e"></param> public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e) { ElementPropertyChanged(e, false); }
/// <summary> /// Event for element property changed. /// </summary> private void CompartmentItemPropertyChanged(object sender, DslModeling::ElementPropertyChangedEventArgs e) { bool repaintOnly = !e.ModelElement.Store.InUndoRedoOrRollback; CompartmentItemChangeRule.ElementPropertyChanged(e, repaintOnly); }
/// <summary> /// Event for element property changed. /// </summary> private void CompartmentItemPropertyChanged(object sender, DslModeling::ElementPropertyChangedEventArgs e) { CompartmentItemChangeRule.ElementPropertyChanged(e, true /* repaint only */); }