protected String getDocumentation() { EModelElement modelElement = getEcoreModelElement(); return modelElement != null ? EcoreUtil.getDocumentation(modelElement) : null; }
protected String getDocumentation() { EModelElement modelElement = getEcoreModelElement(); return modelElement != null ? EcoreUtil.getDocumentation(modelElement) : null; }
protected static void addDocumentation(EModelElement eModelElement, String text) { if (!isEmpty(text)) { String documentation = EcoreUtil.getDocumentation(eModelElement); EcoreUtil.setDocumentation(eModelElement, documentation == null ? text : documentation + LINE_SEPARATOR + text); } }
protected static void addDocumentation(EModelElement eModelElement, String text, String lineSeparator) { if (!isEmpty(text)) { String documentation = EcoreUtil.getDocumentation(eModelElement); EcoreUtil.setDocumentation(eModelElement, documentation == null ? text : documentation + lineSeparator + text); } }
String documentation = EcoreUtil.getDocumentation(eModelElement); if (documentation != null)
String documentation = EcoreUtil.getDocumentation(eModelElement); if (documentation != null)
public String getDocumentation(EObject o) { // Get the documentation from the Xtext grammar hidden nodes. String text = super.getDocumentation(o); if (text == null) { // Get the grammar from the Ecore model element. if (o instanceof EModelElement) { text = EcoreUtil.getDocumentation((EModelElement) o); } if (text == null) { // Get the grammar from the code builder extension. DocumentationAdapter adapter = (DocumentationAdapter) EcoreUtil.getAdapter( o.eAdapters(), DocumentationAdapter.class); if (adapter != null) { return adapter.getDocumentation(); } } } return text; } }
.getDocumentation(eModelElement);
String documentation = EcoreUtil.getDocumentation(eModelElement); if (documentation != null)
String documentation = EcoreUtil.getDocumentation(eModelElement); if (documentation != null)
String documentation = EcoreUtil.getDocumentation(eModelElement); if (documentation != null)
String documentation = EcoreUtil.getDocumentation(eModelElement); if (documentation != null)
int end = documentation.lastIndexOf("</"); String documentationBody = end == -1 ? null : documentation.substring(start + 1, end); String existingDocumentation = EcoreUtil.getDocumentation(eModelElement); if (existingDocumentation != null)
String existingDocumentation = EcoreUtil.getDocumentation(eModelElement); if (existingDocumentation != null)