From dbeb0da9d5496b47d130e35c61539ee689d227a0 Mon Sep 17 00:00:00 2001 From: Rene Schneider Date: Wed, 27 Feb 2019 10:43:48 +0100 Subject: [PATCH] fixes #230: Suite documentation display does not include @params --- .../IntegrityEObjectDocumentationProvider.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/de.gebit.integrity.dsl.ui/src/de/gebit/integrity/ui/documentation/IntegrityEObjectDocumentationProvider.java b/de.gebit.integrity.dsl.ui/src/de/gebit/integrity/ui/documentation/IntegrityEObjectDocumentationProvider.java index ab77255fa..a43573f5d 100644 --- a/de.gebit.integrity.dsl.ui/src/de/gebit/integrity/ui/documentation/IntegrityEObjectDocumentationProvider.java +++ b/de.gebit.integrity.dsl.ui/src/de/gebit/integrity/ui/documentation/IntegrityEObjectDocumentationProvider.java @@ -87,16 +87,17 @@ public String getDocumentation(EObject anObjectOrProxy) { SuiteDefinition tempSuiteDefinition = (SuiteDefinition) anObjectOrProxy; ParsedDocumentationComment tempParsedComment = new ParsedDocumentationComment( tempSuiteDefinition.getDocumentation(), - modelSourceExplorer.determineSourceInformation(tempSuiteDefinition.getDocumentation())); - return tempParsedComment.getDocumentationText(); + modelSourceExplorer.determineSourceInformation(tempSuiteDefinition.getDocumentation()), + false); + return tempParsedComment.getJavadocStyleFullDocumentation(); } else if (anObjectOrProxy instanceof VariableEntity) { if (anObjectOrProxy.eContainer() instanceof SuiteParameterDefinition) { - SuiteDefinition tempSuiteDefinition = (SuiteDefinition) anObjectOrProxy.eContainer() - .eContainer(); + SuiteDefinition tempSuiteDefinition + = (SuiteDefinition) anObjectOrProxy.eContainer().eContainer(); if (tempSuiteDefinition.getDocumentation() != null) { - ParsedDocumentationComment tempParsedComment = new ParsedDocumentationComment( - tempSuiteDefinition.getDocumentation(), - modelSourceExplorer.determineSourceInformation(tempSuiteDefinition)); + ParsedDocumentationComment tempParsedComment + = new ParsedDocumentationComment(tempSuiteDefinition.getDocumentation(), + modelSourceExplorer.determineSourceInformation(tempSuiteDefinition)); return tempParsedComment.getParameterDocumentationTexts() .get(((VariableEntity) anObjectOrProxy).getName()); }