1. A method for helping generate constraint language codes for navigation in a constraint language editor, wherein the constraint language editor is used for generating, according to the loaded model/instance and the related constraints, model/instance-related constraint expressions, the navigation, comprising a sequence of model/instance elements, is a path implementing the constraints, the method comprising: parsing the loaded model/instance; calculating, through the type of the navigation-related element in the parsed model/instance, a possible association related to the element; and calculating a possible navigation path according to the association.