Example #1
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (childElement.IsDeleted)
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityType)
            {
                parentElement = GetParentForEntityType((global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityType)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #2
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is global::Microsoft.EntityFrameworkCore.Modeling.EntityType)
            {
                parentElement = GetParentForEntityType((global::Microsoft.EntityFrameworkCore.Modeling.EntityType)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #3
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::UPM_IPS.DCMLRACPGProyectoIPS.ExampleElement)
            {
                parentElement = GetParentForExampleElement((global::UPM_IPS.DCMLRACPGProyectoIPS.ExampleElement)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is global::ORMSolutions.ORMArchitect.RelationalModels.ConceptualDatabase.Table)
            {
                parentElement = GetParentForTable((global::ORMSolutions.ORMArchitect.RelationalModels.ConceptualDatabase.Table)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
        /// <summary>
        /// Event for element added.
        /// </summary>
        private void CompartmentItemAdded(object sender, DslModeling::ElementAddedEventArgs e)
        {
            // If in Undo, Redo or Rollback the compartment item rules are not run so we must refresh the compartment list at this point if required
            bool repaintOnly = !e.ModelElement.Store.InUndoRedoOrRollback;

            CompartmentItemAddRule.ElementAdded(e, repaintOnly);
        }
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::EPAM.NHModelingLanguage.Entity)
            {
                parentElement = GetParentForEntity((global::EPAM.NHModelingLanguage.Entity)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::Company.SlideShowDesigner.Photo)
            {
                parentElement = GetParentForPhoto((global::Company.SlideShowDesigner.Photo)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #8
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::Microsoft.Example.Circuits.Junction)
            {
                parentElement = GetParentForJunction((global::Microsoft.Example.Circuits.Junction)childElement);
            }
            else
            if (childElement is global::Microsoft.Example.Circuits.Transistor)
            {
                parentElement = GetParentForTransistor((global::Microsoft.Example.Circuits.Transistor)childElement);
            }
            else
            if (childElement is global::Microsoft.Example.Circuits.Capacitor)
            {
                parentElement = GetParentForCapacitor((global::Microsoft.Example.Circuits.Capacitor)childElement);
            }
            else
            if (childElement is global::Microsoft.Example.Circuits.Resistor)
            {
                parentElement = GetParentForResistor((global::Microsoft.Example.Circuits.Resistor)childElement);
            }
            else
            if (childElement is global::Microsoft.Example.Circuits.ComponentTerminal)
            {
                parentElement = GetParentForComponentTerminal((global::Microsoft.Example.Circuits.ComponentTerminal)childElement);
            }
            else
            if (childElement is global::Microsoft.Example.Circuits.Comment)
            {
                parentElement = GetParentForComment((global::Microsoft.Example.Circuits.Comment)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #9
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::Bb.ApplicationCooperationViewPoint.ModelElement)
            {
                parentElement = GetParentForModelElement((global::Bb.ApplicationCooperationViewPoint.ModelElement)childElement);
            }
            else
            if (childElement is global::Bb.ApplicationCooperationViewPoint.SubElement)
            {
                parentElement = GetParentForSubElement((global::Bb.ApplicationCooperationViewPoint.SubElement)childElement);
            }
            else
            if (childElement is global::Bb.ApplicationCooperationViewPoint.ConceptElement)
            {
                parentElement = GetParentForConceptElement((global::Bb.ApplicationCooperationViewPoint.ConceptElement)childElement);
            }
            else
            if (childElement is global::Bb.ApplicationCooperationViewPoint.ConceptSubElement)
            {
                parentElement = GetParentForConceptSubElement((global::Bb.ApplicationCooperationViewPoint.ConceptSubElement)childElement);
            }
            else
            if (childElement is global::Bb.ApplicationCooperationViewPoint.Concept)
            {
                parentElement = GetParentForConcept((global::Bb.ApplicationCooperationViewPoint.Concept)childElement);
            }
            else
            if (childElement is global::Bb.ApplicationCooperationViewPoint.Relationship)
            {
                parentElement = GetParentForRelationship((global::Bb.ApplicationCooperationViewPoint.Relationship)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #10
0
			internal static void ElementAdded(DslModeling::ElementAddedEventArgs e, bool repaintOnly)
			{
				if(e==null) throw new global::System.ArgumentNullException("e");
				if (e.ModelElement.IsDeleted)
					return;
				if(e.ModelElement is global::Company.OrmLanguage.EntityHasProperties)
				{
					global::System.Collections.IEnumerable elements = GetEntityElementForEntityShapePropertiesFromLastLink((global::Company.OrmLanguage.EntityHasProperties)e.ModelElement);
					UpdateCompartments(elements, typeof(global::Company.OrmLanguage.EntityShape), "Properties", repaintOnly);
				}
			}
Example #11
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescription)
            {
                parentElement = GetParentForServiceDescription((global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceDescription)childElement);
            }
            else
            if (childElement is global::Microsoft.Practices.ServiceFactory.HostDesigner.Endpoint)
            {
                parentElement = GetParentForEndpoint((global::Microsoft.Practices.ServiceFactory.HostDesigner.Endpoint)childElement);
            }
            else
            if (childElement is global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplication)
            {
                parentElement = GetParentForHostApplication((global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplication)childElement);
            }
            else
            if (childElement is global::Microsoft.Practices.ServiceFactory.HostDesigner.Proxy)
            {
                parentElement = GetParentForProxy((global::Microsoft.Practices.ServiceFactory.HostDesigner.Proxy)childElement);
            }
            else
            if (childElement is global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplication)
            {
                parentElement = GetParentForClientApplication((global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplication)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #12
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::IPS_GT16.XCXABGProyectoIPS.AtributoRelacion)
            {
                parentElement = GetParentForAtributoRelacion((global::IPS_GT16.XCXABGProyectoIPS.AtributoRelacion)childElement);
            }
            else
            if (childElement is global::IPS_GT16.XCXABGProyectoIPS.AtributoEntidad)
            {
                parentElement = GetParentForAtributoEntidad((global::IPS_GT16.XCXABGProyectoIPS.AtributoEntidad)childElement);
            }
            else
            if (childElement is global::IPS_GT16.XCXABGProyectoIPS.ClavePrimaria)
            {
                parentElement = GetParentForClavePrimaria((global::IPS_GT16.XCXABGProyectoIPS.ClavePrimaria)childElement);
            }
            else
            if (childElement is global::IPS_GT16.XCXABGProyectoIPS.Entidad)
            {
                parentElement = GetParentForEntidad((global::IPS_GT16.XCXABGProyectoIPS.Entidad)childElement);
            }
            else
            if (childElement is global::IPS_GT16.XCXABGProyectoIPS.Relacion)
            {
                parentElement = GetParentForRelacion((global::IPS_GT16.XCXABGProyectoIPS.Relacion)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #13
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::BotFrameworkDsl.Start)
            {
                parentElement = GetParentForStart((global::BotFrameworkDsl.Start)childElement);
            }
            else
            if (childElement is global::BotFrameworkDsl.Speak)
            {
                parentElement = GetParentForSpeak((global::BotFrameworkDsl.Speak)childElement);
            }
            else
            if (childElement is global::BotFrameworkDsl.End)
            {
                parentElement = GetParentForEnd((global::BotFrameworkDsl.End)childElement);
            }
            else
            if (childElement is global::BotFrameworkDsl.Listen)
            {
                parentElement = GetParentForListen((global::BotFrameworkDsl.Listen)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (childElement.IsDeleted)
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::BizTalkMessaging.OutPort)
            {
                parentElement = GetParentForOutPort((global::BizTalkMessaging.OutPort)childElement);
            }
            else
            if (childElement is global::BizTalkMessaging.Application)
            {
                parentElement = GetParentForApplication((global::BizTalkMessaging.Application)childElement);
            }
            else
            if (childElement is global::BizTalkMessaging.Broker)
            {
                parentElement = GetParentForBroker((global::BizTalkMessaging.Broker)childElement);
            }
            else
            if (childElement is global::BizTalkMessaging.InPort)
            {
                parentElement = GetParentForInPort((global::BizTalkMessaging.InPort)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
 internal static void ElementAdded(DslModeling::ElementAddedEventArgs e, bool repaintOnly)
 {
     if (e == null)
     {
         throw new global::System.ArgumentNullException("e");
     }
     if (e.ModelElement.IsDeleted)
     {
         return;
     }
     if (e.ModelElement is global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityTypeHasAttribute)
     {
         global::System.Collections.IEnumerable elements = GetEntityTypeForBarkerEntityShapeAttributesCompartmentFromLastLink((global::ORMSolutions.ORMArchitect.EntityRelationshipModels.Barker.EntityTypeHasAttribute)e.ModelElement);
         UpdateCompartments(elements, typeof(global::ORMSolutions.ORMArchitect.Views.BarkerERView.BarkerEntityShape), "AttributesCompartment", repaintOnly);
     }
 }
 internal static void ElementAdded(DslModeling::ElementAddedEventArgs e, bool repaintOnly)
 {
     if (e == null)
     {
         throw new global::System.ArgumentNullException("e");
     }
     if (e.ModelElement.IsDeleted)
     {
         return;
     }
     if (e.ModelElement is global::ORMSolutions.ORMArchitect.RelationalModels.ConceptualDatabase.TableContainsColumn)
     {
         global::System.Collections.IEnumerable elements = GetTableForTableShapeColumnsCompartmentFromLastLink((global::ORMSolutions.ORMArchitect.RelationalModels.ConceptualDatabase.TableContainsColumn)e.ModelElement);
         UpdateCompartments(elements, typeof(global::ORMSolutions.ORMArchitect.Views.RelationalView.TableShape), "ColumnsCompartment", repaintOnly);
     }
 }
Example #17
0
 internal static void ElementAdded(DslModeling::ElementAddedEventArgs e, bool repaintOnly)
 {
     if (e == null)
     {
         throw new global::System.ArgumentNullException("e");
     }
     if (e.ModelElement.IsDeleted)
     {
         return;
     }
     if (e.ModelElement is global::Microsoft.EntityFrameworkCore.Modeling.EntityTypeHasProperties)
     {
         global::System.Collections.IEnumerable elements = GetEntityTypeForEntityTypeShapePropertiesFromLastLink((global::Microsoft.EntityFrameworkCore.Modeling.EntityTypeHasProperties)e.ModelElement);
         UpdateCompartments(elements, typeof(global::Microsoft.EntityFrameworkCore.Modeling.EntityTypeShape), "Properties", repaintOnly);
     }
 }
Example #18
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::Company.FamilyTree.Person)
            {
                parentElement = GetParentForPerson((global::Company.FamilyTree.Person)childElement);
            }
            else
            if (childElement is global::Company.FamilyTree.Town)
            {
                parentElement = GetParentForTown((global::Company.FamilyTree.Town)childElement);
            }
            else
            if (childElement is global::Company.FamilyTree.Nationality)
            {
                parentElement = GetParentForNationality((global::Company.FamilyTree.Nationality)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #19
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            var childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }

            IEnumerable <EFModelDiagram> diagrams = e.ModelElement.Store.ElementDirectory.FindElements <EFModelDiagram>().Where(d => d.ShouldSupport(childElement));

            foreach (EFModelDiagram diagram in diagrams)
            {
                FixUp(diagram, childElement);
            }
        }
Example #20
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            var childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }

            var l_diagrams = e.ModelElement.Store.ElementDirectory.FindElements <DslDiagrams::Diagram>();

            foreach (var diagram in l_diagrams)
            {
                FixUp(diagram, childElement);
            }
        }
Example #21
0
 internal static void ElementAdded(DslModeling::ElementAddedEventArgs e, bool repaintOnly)
 {
     if (e == null)
     {
         throw new global::System.ArgumentNullException("e");
     }
     if (e.ModelElement.IsDeleted)
     {
         return;
     }
     if (e.ModelElement is global::Ufba.Ev.OptionHasTypes)
     {
         global::System.Collections.IEnumerable elements = GetOptionForOptionShapeActionsFromLastLink((global::Ufba.Ev.OptionHasTypes)e.ModelElement);
         UpdateCompartments(elements, typeof(global::Ufba.Ev.OptionShape), "Actions", repaintOnly);
     }
     if (e.ModelElement is global::Ufba.Ev.OptionHasProperties)
     {
         global::System.Collections.IEnumerable elements = GetOptionForOptionShapePropertiesFromLastLink((global::Ufba.Ev.OptionHasProperties)e.ModelElement);
         UpdateCompartments(elements, typeof(global::Ufba.Ev.OptionShape), "Properties", repaintOnly);
     }
 }
Example #22
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is global::ce.GEB_NGN_PCR_Practica1.MenuItem)
            {
                parentElement = GetParentForMenuItem((global::ce.GEB_NGN_PCR_Practica1.MenuItem)childElement);
            }
            else
            if (childElement is global::ce.GEB_NGN_PCR_Practica1.Menu)
            {
                parentElement = GetParentForMenu((global::ce.GEB_NGN_PCR_Practica1.Menu)childElement);
            }
            else
            if (childElement is global::ce.GEB_NGN_PCR_Practica1.Ventana)
            {
                parentElement = GetParentForVentana((global::ce.GEB_NGN_PCR_Practica1.Ventana)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
 /// <summary>
 /// Event for element added.
 /// </summary>
 private void CompartmentItemAdded(object sender, DslModeling::ElementAddedEventArgs e)
 {
     CompartmentItemAddRule.ElementAdded(e, true /* repaint only */);
 }
 /// <summary>
 /// Called when an element is added.
 /// </summary>
 /// <param name="e"></param>
 public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
 {
     ElementAdded(e, false);
 }
Example #25
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::Microsoft.Gadgeteer.Designer.Socket)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForSocket(Socket childElement)
                // {
                // }
                // must be implemented in a partial class of Microsoft.Gadgeteer.Designer.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForSocket((global::Microsoft.Gadgeteer.Designer.Socket)childElement);
            }
            else
            if (childElement is global::Microsoft.Gadgeteer.Designer.Module)
            {
                parentElement = GetParentForModule((global::Microsoft.Gadgeteer.Designer.Module)childElement);
            }
            else
            if (childElement is global::Microsoft.Gadgeteer.Designer.Mainboard)
            {
                parentElement = GetParentForMainboard((global::Microsoft.Gadgeteer.Designer.Mainboard)childElement);
            }
            else
            if (childElement is global::Microsoft.Gadgeteer.Designer.SocketUse)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForSocketUse(SocketUse childElement)
                // {
                // }
                // must be implemented in a partial class of Microsoft.Gadgeteer.Designer.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForSocketUse((global::Microsoft.Gadgeteer.Designer.SocketUse)childElement);
            }
            else
            if (childElement is global::Microsoft.Gadgeteer.Designer.Comment)
            {
                parentElement = GetParentForComment((global::Microsoft.Gadgeteer.Designer.Comment)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #26
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.Task)
            {
                parentElement = GetParentForTask((global::AppDevUnited.TaskFlowDSLSample.Task)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.ObjectInState)
            {
                parentElement = GetParentForObjectInState((global::AppDevUnited.TaskFlowDSLSample.ObjectInState)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.MergeBranch)
            {
                parentElement = GetParentForMergeBranch((global::AppDevUnited.TaskFlowDSLSample.MergeBranch)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.Endpoint)
            {
                parentElement = GetParentForEndpoint((global::AppDevUnited.TaskFlowDSLSample.Endpoint)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.StartPoint)
            {
                parentElement = GetParentForStartPoint((global::AppDevUnited.TaskFlowDSLSample.StartPoint)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.Synchronization)
            {
                parentElement = GetParentForSynchronization((global::AppDevUnited.TaskFlowDSLSample.Synchronization)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.Actor)
            {
                parentElement = GetParentForActor((global::AppDevUnited.TaskFlowDSLSample.Actor)childElement);
            }
            else
            if (childElement is global::AppDevUnited.TaskFlowDSLSample.Comment)
            {
                parentElement = GetParentForComment((global::AppDevUnited.TaskFlowDSLSample.Comment)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                parentElement = GetParentForRelationship((DslModeling::ElementLink)childElement);
            }
            else
            if (childElement is global::UPM_IPS.DNRDPVSQGProyectoMDD.VentanaPrincipal)
            {
                parentElement = GetParentForVentanaPrincipal((global::UPM_IPS.DNRDPVSQGProyectoMDD.VentanaPrincipal)childElement);
            }
            else
            if (childElement is global::UPM_IPS.DNRDPVSQGProyectoMDD.VentanaSecundaria)
            {
                parentElement = GetParentForVentanaSecundaria((global::UPM_IPS.DNRDPVSQGProyectoMDD.VentanaSecundaria)childElement);
            }
            else
            if (childElement is global::UPM_IPS.DNRDPVSQGProyectoMDD.EstadoFin)
            {
                parentElement = GetParentForEstadoFin((global::UPM_IPS.DNRDPVSQGProyectoMDD.EstadoFin)childElement);
            }
            else
            if (childElement is global::UPM_IPS.DNRDPVSQGProyectoMDD.Item)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForItem(Item childElement)
                // {
                // }
                // must be implemented in a partial class of UPM_IPS.DNRDPVSQGProyectoMDD.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForItem((global::UPM_IPS.DNRDPVSQGProyectoMDD.Item)childElement);
            }
            else
            if (childElement is global::UPM_IPS.DNRDPVSQGProyectoMDD.Boton)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForBoton(Boton childElement)
                // {
                // }
                // must be implemented in a partial class of UPM_IPS.DNRDPVSQGProyectoMDD.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForBoton((global::UPM_IPS.DNRDPVSQGProyectoMDD.Boton)childElement);
            }
            else
            if (childElement is global::UPM_IPS.DNRDPVSQGProyectoMDD.Menu)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForMenu(Menu childElement)
                // {
                // }
                // must be implemented in a partial class of UPM_IPS.DNRDPVSQGProyectoMDD.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForMenu((global::UPM_IPS.DNRDPVSQGProyectoMDD.Menu)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }
Example #28
0
        public override void ElementAdded(DslModeling::ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            DslModeling::ModelElement childElement = e.ModelElement;

            if (this.SkipFixup(childElement))
            {
                return;
            }
            DslModeling::ModelElement parentElement;

            if (childElement is DslModeling::ElementLink)
            {
                global::System.Collections.ObjectModel.ReadOnlyCollection <DslDiagrams::Diagram> diagrams =
                    childElement.Store.ElementDirectory.FindElements <DslDiagrams::Diagram>();

                for (int i = 0; i < diagrams.Count; i++)
                {
                    parentElement = GetParentForRelationship(diagrams[i], (DslModeling::ElementLink)childElement);

                    if (parentElement != null)
                    {
                        DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
                    }
                }

                return;
            }
            else
            if (childElement is global::NuPattern.Runtime.Schema.ElementSchema)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForElementSchema(ElementSchema childElement)
                // {
                // }
                // must be implemented in a partial class of NuPattern.Runtime.Schema.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForElementSchema((global::NuPattern.Runtime.Schema.ElementSchema)childElement);
            }
            else
            if (childElement is global::NuPattern.Runtime.Schema.CollectionSchema)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForCollectionSchema(CollectionSchema childElement)
                // {
                // }
                // must be implemented in a partial class of NuPattern.Runtime.Schema.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForCollectionSchema((global::NuPattern.Runtime.Schema.CollectionSchema)childElement);
            }
            else
            if (childElement is global::NuPattern.Runtime.Schema.PatternSchema)
            {
                parentElement = GetParentForPatternSchema((global::NuPattern.Runtime.Schema.PatternSchema)childElement);
            }
            else
            if (childElement is global::NuPattern.Runtime.Schema.ExtensionPointSchema)
            {
                // Method:
                // private Microsoft.VisualStudio.Modeling.ModelElement GetParentForExtensionPointSchema(ExtensionPointSchema childElement)
                // {
                // }
                // must be implemented in a partial class of NuPattern.Runtime.Schema.FixUpDiagram.  Given a child element,
                // this method should return the parent model element that is associated with the shape or diagram that will be the parent
                // of the shape created for this child.  If no shape should be created, the method should return null.
                parentElement = GetParentForExtensionPointSchema((global::NuPattern.Runtime.Schema.ExtensionPointSchema)childElement);
            }
            else
            if (childElement is global::NuPattern.Runtime.Schema.ViewSchema)
            {
                parentElement = GetParentForViewSchema((global::NuPattern.Runtime.Schema.ViewSchema)childElement);
            }
            else
            {
                parentElement = null;
            }

            if (parentElement != null)
            {
                DslDiagrams::Diagram.FixUpDiagram(parentElement, childElement);
            }
        }