Skip to content

Commit

Permalink
[2322] Addition of "elements of interest" relation in html exports
Browse files Browse the repository at this point in the history
- Add missing code

bug: 2322
Change-Id: I67d86640ed2cd530c815ab84628a2926f772f26e
Signed-off-by: Faycal Abka <abka.faycal@gmail.com>
  • Loading branch information
fabka4t3 committed Jan 8, 2019
1 parent 527dfbd commit 687c674
Showing 1 changed file with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.4.0.v20160519-0641
//Generated with EGF 1.6.0.201805040915
package org.polarsys.capella.docgen.foundations;

import org.eclipse.egf.common.helper.*;
Expand Down Expand Up @@ -39,6 +39,8 @@ public static synchronized CapellaElementEndContentDocGen create(String lineSepa
protected final String TEXT_16 = NL;
protected final String TEXT_17 = NL;
protected final String TEXT_18 = NL;
protected final String TEXT_19 = NL;
protected final String TEXT_20 = NL;

public CapellaElementEndContentDocGen() {
//Here is the constructor
Expand Down Expand Up @@ -74,8 +76,8 @@ public String generate(Object argument) throws Exception {
ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx);
}

stringBuffer.append(TEXT_17);
stringBuffer.append(TEXT_18);
stringBuffer.append(TEXT_19);
stringBuffer.append(TEXT_20);
return stringBuffer.toString();
}

Expand Down Expand Up @@ -209,6 +211,24 @@ protected void method_body(final StringBuffer stringBuffer, final PatternContext
stringBuffer.setLength(0);
}

stringBuffer.append(TEXT_17);
// Interested diagram in this model element
stringBuffer.append(TEXT_18);
{
//<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.InterestedDiagrmsGeneration" args="element:element"%>

InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
stringBuffer.setLength(0);

final Map<String, Object> callParameters = new HashMap<String, Object>();
callParameters.put("element", element);
CallHelper.executeWithParameterInjection(
"platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_mGFhcAHoEemzNsJkc2kajg",
new ExecutionContext((InternalPatternContext) ctx), callParameters);
stringBuffer.setLength(0);
}

InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString());
}
Expand Down

0 comments on commit 687c674

Please sign in to comment.