Skip to content

Commit

Permalink
#183 Regen with EGF 1.6.4
Browse files Browse the repository at this point in the history
Change-Id: Id8c39e28dddfb8d14fbb27f4e842c3753efd1f26
Signed-off-by: Erwann Traisnel <erwann.traisnel@obeo.fr>
  • Loading branch information
etraisnel2 authored and pdulth committed Dec 13, 2023
1 parent 0f55bc0 commit 1fb15c8
Show file tree
Hide file tree
Showing 7 changed files with 127 additions and 136 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.5.1.v20180423-0901
//Generated with EGF 1.6.4.202309201142
package org.polarsys.kitalpha.vp.requirements.docgen.common;

import org.eclipse.egf.common.helper.*;
Expand Down Expand Up @@ -28,7 +28,6 @@ public static synchronized AbstractRequirementDocgen create(String lineSeparator
public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "";
protected final String TEXT_2 = NL;
protected final String TEXT_3 = NL;

public AbstractRequirementDocgen() {
//Here is the constructor
Expand Down Expand Up @@ -57,7 +56,7 @@ public String generate(Object argument) throws Exception {
}

stringBuffer.append(TEXT_2);
stringBuffer.append(TEXT_3);
stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.5.1.v20180423-0901
//Generated with EGF 1.6.4.202309201142
package org.polarsys.kitalpha.vp.requirements.docgen.common;

import org.eclipse.egf.common.helper.*;
Expand Down Expand Up @@ -31,9 +31,6 @@ public static synchronized CommonPageBottomPattern create(String lineSeparator)
protected final String TEXT_4 = NL;
protected final String TEXT_5 = " " + NL + "</li>";
protected final String TEXT_6 = NL + "</ul>";
protected final String TEXT_7 = NL;
protected final String TEXT_8 = NL;
protected final String TEXT_9 = NL;

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

stringBuffer.append(TEXT_8);
stringBuffer.append(TEXT_9);
stringBuffer.append(TEXT_4);
stringBuffer.append(TEXT_4);
return stringBuffer.toString();
}

Expand Down Expand Up @@ -149,7 +146,7 @@ protected void method_body(final StringBuffer stringBuffer, final PatternContext
}
stringBuffer.append(TEXT_6);
}
stringBuffer.append(TEXT_7);
stringBuffer.append(TEXT_4);
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.5.1.v20180423-0901
//Generated with EGF 1.6.4.202309201142
package org.polarsys.kitalpha.vp.requirements.docgen.common;

import org.eclipse.egf.common.helper.*;
Expand Down Expand Up @@ -32,8 +32,6 @@ public static synchronized CommonPageTopPattern create(String lineSeparator) {
protected final String TEXT_7 = " ";
protected final String TEXT_8 = NL;
protected final String TEXT_9 = NL + "No description";
protected final String TEXT_10 = NL;
protected final String TEXT_11 = NL;

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

stringBuffer.append(TEXT_10);
stringBuffer.append(TEXT_11);
stringBuffer.append(TEXT_8);
stringBuffer.append(TEXT_8);
return stringBuffer.toString();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.5.1.v20180423-0901
//Generated with EGF 1.6.4.202309201142
package org.polarsys.kitalpha.vp.requirements.docgen.content;

import org.polarsys.kitalpha.vp.requirements.docgen.helper.RequirementHelper;
Expand All @@ -22,9 +22,6 @@ public static synchronized ModuleDocgen create(String lineSeparator) {
public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = " ";
protected final String TEXT_2 = NL;
protected final String TEXT_3 = NL;
protected final String TEXT_4 = NL;
protected final String TEXT_5 = NL;

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

stringBuffer.append(TEXT_4);
stringBuffer.append(TEXT_5);
stringBuffer.append(TEXT_2);
stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}

Expand Down Expand Up @@ -105,7 +102,7 @@ protected void method_content(final StringBuffer stringBuffer, final PatternCont

super.method_content(stringBuffer, ctx);
stringBuffer.append(TEXT_2);
stringBuffer.append(TEXT_3);
stringBuffer.append(TEXT_2);
stringBuffer.append(RequirementHelper.generateModuleContents(parameter));
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "content", stringBuffer.toString());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.6.1.201906060805
//Generated with EGF 1.6.4.202309201142
package org.polarsys.kitalpha.vp.requirements.docgen.content;

import org.eclipse.egf.common.helper.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.6.3.202110291409
//Generated with EGF 1.6.4.202309201142
package org.polarsys.kitalpha.vp.requirements.docgen.extensions;

import org.eclipse.egf.common.helper.*;
Expand All @@ -11,114 +11,114 @@
import org.polarsys.kitalpha.doc.gen.business.core.extension.page.PageExtensionElement.PageExtensionActivationStatus;

public class RequirementsContent {
protected static String nl;

public static synchronized RequirementsContent create(String lineSeparator) {
nl = lineSeparator;
RequirementsContent result = new RequirementsContent();
nl = null;
return result;
}

public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;

protected final String TEXT_1 = "";

protected final String TEXT_2 = NL;

public RequirementsContent() {
//Here is the constructor
StringBuffer stringBuffer = new StringBuffer();

// add initialisation of the pattern variables (declaration has been already done).

}

public String generate(Object argument) throws Exception {
final StringBuffer stringBuffer = new StringBuffer();

InternalPatternContext ctx = (InternalPatternContext) argument;
Map<String, String> queryCtx = null;
IQuery.ParameterDescription paramDesc = null;
Node.Container currentNode = ctx.getNode();

List<Object> elementList = null;
//this pattern can only be called by another (i.e. it's not an entry point in execution)
List<Object> documentTitleList = null;
//this pattern can only be called by another (i.e. it's not an entry point in execution)

for (Object elementParameter : elementList) {
for (Object documentTitleParameter : documentTitleList) {

this.element = (org.eclipse.emf.ecore.EObject) elementParameter;
this.documentTitle = (java.lang.String) documentTitleParameter;

if (preCondition(ctx)) {
ctx.setNode(new Node.Container(currentNode, getClass()));
orchestration(ctx);
}

}
}
ctx.setNode(currentNode);
if (ctx.useReporter()) {
ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx);
}

stringBuffer.append(TEXT_2);
stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}

public String orchestration(PatternContext ctx) throws Exception {
InternalPatternContext ictx = (InternalPatternContext) ctx;

method_content(new StringBuffer(), ictx);

if (ictx.useReporter()) {
Map<String, Object> parameterValues = new HashMap<String, Object>();
parameterValues.put("element", this.element);
parameterValues.put("documentTitle", this.documentTitle);
String outputWithCallBack = OutputManager.computeLoopOutput(ictx);
String loop = OutputManager.computeLoopOutputWithoutCallback(ictx);
ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues);
}
return null;
}

protected org.eclipse.emf.ecore.EObject element = null;

public void set_element(org.eclipse.emf.ecore.EObject object) {
this.element = object;
}

protected java.lang.String documentTitle = null;

public void set_documentTitle(java.lang.String object) {
this.documentTitle = object;
}

public Map<String, Object> getParameters() {
final Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("element", this.element);
parameters.put("documentTitle", this.documentTitle);
return parameters;
}

protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception {

String outputFolder = ctx.getValue("outputFolder").toString();
String projectName = ctx.getValue("projectName").toString();

stringBuffer.append(TEXT_1);
stringBuffer.append(TEXT_2);
stringBuffer.append(org.polarsys.kitalpha.vp.requirements.docgen.helper.RequirementHelper.generateRequirementRelations((org.polarsys.capella.core.data.capellacore.CapellaElement) element,
outputFolder, projectName));
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "content", stringBuffer.toString());
}

public boolean preCondition(PatternContext ctx) throws Exception {
return PageExtensionRegistry.getInstance().getCategoryActivationStatus("Capella", "Requirement Viewpoint").equals(PageExtensionActivationStatus.Active);
}
}
protected static String nl;

public static synchronized RequirementsContent create(String lineSeparator) {
nl = lineSeparator;
RequirementsContent result = new RequirementsContent();
nl = null;
return result;
}

public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "";
protected final String TEXT_2 = NL;

public RequirementsContent() {
//Here is the constructor
StringBuffer stringBuffer = new StringBuffer();

// add initialisation of the pattern variables (declaration has been already done).

}

public String generate(Object argument) throws Exception {
final StringBuffer stringBuffer = new StringBuffer();

InternalPatternContext ctx = (InternalPatternContext) argument;
Map<String, String> queryCtx = null;
IQuery.ParameterDescription paramDesc = null;
Node.Container currentNode = ctx.getNode();

List<Object> elementList = null;
//this pattern can only be called by another (i.e. it's not an entry point in execution)
List<Object> documentTitleList = null;
//this pattern can only be called by another (i.e. it's not an entry point in execution)

for (Object elementParameter : elementList) {
for (Object documentTitleParameter : documentTitleList) {

this.element = (org.eclipse.emf.ecore.EObject) elementParameter;
this.documentTitle = (java.lang.String) documentTitleParameter;

if (preCondition(ctx)) {
ctx.setNode(new Node.Container(currentNode, getClass()));
orchestration(ctx);
}

}
}
ctx.setNode(currentNode);
if (ctx.useReporter()) {
ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx);
}

stringBuffer.append(TEXT_2);
stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}

public String orchestration(PatternContext ctx) throws Exception {
InternalPatternContext ictx = (InternalPatternContext) ctx;

method_content(new StringBuffer(), ictx);

if (ictx.useReporter()) {
Map<String, Object> parameterValues = new HashMap<String, Object>();
parameterValues.put("element", this.element);
parameterValues.put("documentTitle", this.documentTitle);
String outputWithCallBack = OutputManager.computeLoopOutput(ictx);
String loop = OutputManager.computeLoopOutputWithoutCallback(ictx);
ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues);
}
return null;
}

protected org.eclipse.emf.ecore.EObject element = null;

public void set_element(org.eclipse.emf.ecore.EObject object) {
this.element = object;
}

protected java.lang.String documentTitle = null;

public void set_documentTitle(java.lang.String object) {
this.documentTitle = object;
}

public Map<String, Object> getParameters() {
final Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("element", this.element);
parameters.put("documentTitle", this.documentTitle);
return parameters;
}

protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception {

String outputFolder = ctx.getValue("outputFolder").toString();
String projectName = ctx.getValue("projectName").toString();

stringBuffer.append(TEXT_1);
stringBuffer.append(TEXT_2);
stringBuffer.append(org.polarsys.kitalpha.vp.requirements.docgen.helper.RequirementHelper
.generateRequirementRelations((org.polarsys.capella.core.data.capellacore.CapellaElement) element,
outputFolder, projectName));
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "content", stringBuffer.toString());
}

public boolean preCondition(PatternContext ctx) throws Exception {
return PageExtensionRegistry.getInstance().getCategoryActivationStatus("Capella", "Requirement Viewpoint")
.equals(PageExtensionActivationStatus.Active);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Generated with EGF 1.5.1.v20180423-0901
//Generated with EGF 1.6.4.202309201142
package org.polarsys.kitalpha.vp.requirements.docgen.sidebar;

import org.eclipse.egf.common.helper.*;
Expand Down

0 comments on commit 1fb15c8

Please sign in to comment.