The subject invention provides a system and/or method that facilitates
synchronizing a diagram file with a code allowing a data representation
application (e.g., class modeling tool) to accurately display at least a
type, a member and relationships therewith. An association component can
associate an orphaned shape from the diagram file to a type within an
edited code wherein such edit entails a renaming of a type. The
association component can utilize a heuristic search in order to
associate an orphaned shape with a type. Moreover, the association
component can utilize a distance metric and/or match confidence in order
to indicate and associate a plurality of orphaned shapes to a plurality
of types with a high probability.