1. A method for automatically relating documents, comprising: selecting a first item in a first document that is associated with a first document type; selecting a second item wherein the second item is related to the first item; annotating the second item in a second document that is associated with a second document type with an annotation, wherein the annotation refers to the first item, and wherein the annotation comprises provenance information that includes association between the first item in the first document type and the second item in the second document type; creating annotation maps that enable an interactive editor to provide error checking, code completion, and contextual viewing, wherein each annotation map contains one or more associations between an item in the first document and an annotated item in the second document; and adding an entry for a new association for the annotation in a selected annotation map based on an annotation type of the annotation.
1. A method for automatically relating documents, comprising: selecting a first item in a first document that is associated with a first document type; selecting a second item wherein the second item is related to the first item; annotating the second item in a second document that is associated with a second document type with an annotation, wherein the annotation refers to the first item, and wherein the annotation comprises provenance information that includes association between the first item in the first document type and the second item in the second document type; creating annotation maps that enable an interactive editor to provide error checking, code completion, and contextual viewing, wherein each annotation map contains one or more associations between an item in the first document and an annotated item in the second document; and adding an entry for a new association for the annotation in a selected annotation map based on an annotation type of the annotation. 4. The method of claim 1 wherein: the annotation is a Java programming language annotation.