i'm working on a Graphiti based project. now what am trying to do is to synchronize between two diagrams (what do i mean? what i mean is in case i have two diagrams one of them is the top level diagram which has an element that navigate to the 2nd diagram .the 2nd diagram contains same ports that connected to the parent-element which we used to navigate to the 2nd diagram)
i can imagen how it should works but till now i couldn't find the right place for the execute function that is responsible of creating the ports at the 2nd level based on the ports that are connected to the parent element at the top-level diagram. any idea?
please, if you have any idea about how it should be done or any suggestions share it with me
first of all thank you all for your help I really appreciate it. I tried the update feature and somehow it covers the getchildren() feature but not the element creation. Till now I don't know how to create the port at the 2nd diagram. I couldn't implement it inside the update feature because I don't know the right way to do it. how can I force the 2nd diagram to create (synchronise) the children port elements when ever the user opens the 2nd diagram?