public String getClassAssociations(EClass eClass) { // if associations exist if (eClass.getEReferences().size() > 0) { StringBuilder sb = new StringBuilder(); sb.append("\\subsubsection*{Associations}\n"); sb.append("\\begin{itemize}\n"); for (EReference eReference : eClass.getEReferences()) { sb.append("\\item "); // Name sb.append(eReference.getName()).append(": "); // Type // Works only for internal sb.append("\\nameref{").append(eReference.getEReferenceType().getName()).append("} "); // Mult sb.append(getMultiplicity(eReference)).append(" "); // Containement if (eReference.isContainment()) { sb.append("(containment) "); } // Description if (getLatexDocAnnotation( eReference, prefs.getPreferenceString(PreferenceConstants.P_DESCRIPTION_KEY)) != null) { sb.append("\\newline\n") .append( getLatexDocAnnotation( eReference, prefs.getPreferenceString(PreferenceConstants.P_DESCRIPTION_KEY))); } sb.append("\n"); } sb.append("\\end{itemize}"); return sb.toString(); } return "\\subsubsection*{Associations} ~\\\\ No additional associations"; }