1. A method comprising: identifying a first object, the first object including code that contains a first code portion; identifying a second object, the second object including a graphical model containing a first graphical element; identifying a first mapping between the first graphical element and the first code portion; identifying a second graphical element, included in the graphical model, that corresponds to the first graphical element; identifying a second mapping between the second graphical element and a second code portion included in the code; receiving information associated with an edit to the first code portion; and regenerating: the first graphical element based on the first mapping and the information associated with the edit to the first code portion, the second graphical element based on regenerating the first graphical element, and the second code portion based on the second mapping and regenerating the second graphical element, the identifying of the first object, the identifying of the second object, the identifying of the first mapping, the identifying of the second graphical element, the identifying of the second mapping, the receiving, and the regenerating being performed by a processor.