";
- protected final String TEXT_10 = NL + "
Part Of
";
- protected final String TEXT_11 = NL + "
Referenced By
";
- protected final String TEXT_12 = NL + "
Parameter Of
";
+ protected final String TEXT_2 = NL;
public ClassDocGen() {
//Here is the constructor
@@ -72,8 +57,8 @@ public String generate(Object argument) throws Exception {
ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx);
}
- stringBuffer.append(TEXT_3);
- stringBuffer.append(TEXT_3);
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}
@@ -92,6 +77,18 @@ public String orchestration(PatternContext ctx) throws Exception {
return null;
}
+ protected java.lang.String projectName = null;
+
+ public void set_projectName(java.lang.String object) {
+ this.projectName = object;
+ }
+
+ protected java.lang.String outputFolder = null;
+
+ public void set_outputFolder(java.lang.String object) {
+ this.outputFolder = object;
+ }
+
public Map
getParameters() {
final Map parameters = new HashMap();
parameters.put("parameter", this.parameter);
@@ -101,165 +98,159 @@ public Map getParameters() {
protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception {
super.method_content(new StringBuffer(), ctx);
- String projectName = ctx.getValue("projectName").toString();
- String outputFolder = ctx.getValue("outputFolder").toString();
stringBuffer.append(TEXT_1);
- if (CapellaClassServices.getClassFeatures(element).size() >= 1) {
- stringBuffer.append(TEXT_2);
- String features = "Features";
- stringBuffer.append(TEXT_3);
- {
- //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,features:property"%>
-
- InternalPatternContext ictx = (InternalPatternContext) ctx;
- new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
- stringBuffer.setLength(0);
-
- final Map callParameters = new HashMap();
- callParameters.put("eObject", element);
- callParameters.put("property", features);
- CallHelper.executeWithParameterInjection(
- "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA",
- new ExecutionContext((InternalPatternContext) ctx), callParameters);
- stringBuffer.setLength(0);
- }
-
- stringBuffer.append(TEXT_3);
- stringBuffer.append(StringUtil.stringListToBulette(CapellaClassServices.getClassFeatures(element)));
- stringBuffer.append(TEXT_4);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Features" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", element);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_q7iGkKnUEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
- stringBuffer.append(TEXT_3);
- if (CapellaClassServices.getClassRealizeInformation(element).size() >= 1) {
- stringBuffer.append(TEXT_5);
- String realisation = "Realisation";
- stringBuffer.append(TEXT_3);
- {
- //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,realisation:property"%>
-
- InternalPatternContext ictx = (InternalPatternContext) ctx;
- new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
- stringBuffer.setLength(0);
-
- final Map callParameters = new HashMap();
- callParameters.put("eObject", element);
- callParameters.put("property", realisation);
- CallHelper.executeWithParameterInjection(
- "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA",
- new ExecutionContext((InternalPatternContext) ctx), callParameters);
- stringBuffer.setLength(0);
- }
- stringBuffer.append(TEXT_3);
- stringBuffer
- .append(StringUtil.stringListToBulette(CapellaClassServices.getClassRealizeInformation(element)));
- stringBuffer.append(TEXT_4);
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Realisation" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", element);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_PQROgKnWEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
- stringBuffer.append(TEXT_3);
-
- Collection propertiesCollection = CapellaClassServices.getClassProperties(element, projectName,
- outputFolder);
- if (propertiesCollection.size() >= 1) {
- stringBuffer.append(TEXT_6);
- String properties = "Properties";
- stringBuffer.append(TEXT_3);
- {
- //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,properties:property"%>
-
- InternalPatternContext ictx = (InternalPatternContext) ctx;
- new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
- stringBuffer.setLength(0);
-
- final Map callParameters = new HashMap();
- callParameters.put("eObject", element);
- callParameters.put("property", properties);
- CallHelper.executeWithParameterInjection(
- "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA",
- new ExecutionContext((InternalPatternContext) ctx), callParameters);
- stringBuffer.setLength(0);
- }
- stringBuffer.append(TEXT_3);
- stringBuffer.append(StringUtil.stringListToBulette(propertiesCollection));
- stringBuffer.append(TEXT_4);
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Properties" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", element);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_Pir0MKnWEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
- stringBuffer.append(TEXT_7);
- if (CapellaClassServices.getClassOperation(element).size() > 0) {
- stringBuffer.append(TEXT_8);
- String operation = "Operations";
- stringBuffer.append(TEXT_3);
- {
- //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,operation:property"%>
-
- InternalPatternContext ictx = (InternalPatternContext) ctx;
- new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
- stringBuffer.setLength(0);
-
- final Map callParameters = new HashMap();
- callParameters.put("eObject", element);
- callParameters.put("property", operation);
- CallHelper.executeWithParameterInjection(
- "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA",
- new ExecutionContext((InternalPatternContext) ctx), callParameters);
- stringBuffer.setLength(0);
- }
- stringBuffer.append(TEXT_3);
- stringBuffer.append(StringUtil.stringListToBulette(CapellaClassServices.getClassOperation(element)));
- stringBuffer.append(TEXT_4);
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Operations" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", element);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_Prw3sKnWEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
- stringBuffer.append(TEXT_3);
-
- Collection dataValuesCollection = CapellaClassServices.getClassDataValues(element, projectName,
- outputFolder);
- if (dataValuesCollection.size() >= 1) {
- stringBuffer.append(TEXT_9);
- String dataValue = "Data Values";
- stringBuffer.append(TEXT_3);
- {
- //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,dataValue:property"%>
-
- InternalPatternContext ictx = (InternalPatternContext) ctx;
- new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
- stringBuffer.setLength(0);
-
- final Map callParameters = new HashMap();
- callParameters.put("eObject", element);
- callParameters.put("property", dataValue);
- CallHelper.executeWithParameterInjection(
- "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA",
- new ExecutionContext((InternalPatternContext) ctx), callParameters);
- stringBuffer.setLength(0);
- }
- stringBuffer.append(TEXT_3);
- stringBuffer.append(StringUtil.stringListToBulette(dataValuesCollection));
- stringBuffer.append(TEXT_4);
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_DataValues" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", element);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_P05lkKnWEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
- stringBuffer.append(TEXT_3);
- Collection partofCollection = CapellaClassServices.getPartOf((Class) element, projectName,
- outputFolder);
- if (partofCollection.size() > 0) {
- stringBuffer.append(TEXT_10);
- stringBuffer.append(TEXT_3);
- stringBuffer.append(StringUtil.stringListToBulette(partofCollection));
+
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_PartOf" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", parameter);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_zK6ccKnMEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
- Collection referencedByCollection = CapellaClassServices.getReferencedBy((Class) element, projectName,
- outputFolder);
- if (referencedByCollection.size() > 0) {
- stringBuffer.append(TEXT_11);
- stringBuffer.append(TEXT_3);
- stringBuffer.append(StringUtil.stringListToBulette(referencedByCollection));
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_ReferencedBy" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", parameter);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_UFoKAKnNEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
- Collection parameterOfCollection = CapellaClassServices.getParameterOf((Class) element, projectName,
- outputFolder);
- if (parameterOfCollection.size() > 0) {
- stringBuffer.append(TEXT_12);
- stringBuffer.append(TEXT_3);
- stringBuffer.append(StringUtil.stringListToBulette(parameterOfCollection));
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_ParameterOf" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", parameter);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_UU0ckKnNEeux98xBZ-sHgw",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
+
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "content", stringBuffer.toString());
}
@@ -277,6 +268,17 @@ protected void method_setTitle(final StringBuffer stringBuffer, final PatternCon
new Node.DataLeaf(ictx.getNode(), getClass(), "setTitle", stringBuffer.toString());
}
+ protected void method_setCapellaContext(final StringBuffer stringBuffer, final PatternContext ctx)
+ throws Exception {
+
+ super.method_setCapellaContext(new StringBuffer(), ctx);
+ projectName = ctx.getValue("projectName").toString();
+ outputFolder = ctx.getValue("outputFolder").toString();
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString());
+ }
+
public boolean preCondition(PatternContext ctx) throws Exception {
return (this.parameter instanceof Class);
}
diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java
index 433e0784..78dbb098 100644
--- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java
+++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java
@@ -1,4 +1,4 @@
-//Generated with EGF 1.6.1.201906060805
+//Generated with EGF 1.6.2.202001031546
package org.polarsys.capella.docgen.content;
import org.eclipse.egf.common.helper.*;
@@ -121,7 +121,7 @@ protected void method_content(final StringBuffer stringBuffer, final PatternCont
String elementType = "" + EscapeChars.forHTML(element.eClass().getName())
+ "";
EObject type = ((Part) element).getType();
- String logo = ImageHelper.INSTANCE.getTypePng(element, projectName, outputFolder);
+ String logo = ImageHelper.getTypePng(element, projectName, outputFolder);
String documentTitle = elementName;
stringBuffer.append(TEXT_1);
stringBuffer.append(logo);
@@ -254,14 +254,14 @@ protected void method_content(final StringBuffer stringBuffer, final PatternCont
}
stringBuffer.append(TEXT_9);
{
- //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="type:element"%>
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="type:parameter"%>
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
stringBuffer.setLength(0);
final Map callParameters = new HashMap();
- callParameters.put("element", type);
+ callParameters.put("parameter", type);
CallHelper.executeWithParameterInjection(
"platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_H6iekavLEeCas-LHcur3rg",
new ExecutionContext((InternalPatternContext) ctx), callParameters);
diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java
index 124dd68d..3f47e152 100644
--- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java
+++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java
@@ -1,4 +1,4 @@
-//Generated with EGF 1.6.1.201906060805
+//Generated with EGF 1.6.2.202001031546
package org.polarsys.capella.docgen.content;
import org.polarsys.capella.core.linkedtext.ui.CapellaEmbeddedLinkedTextEditorInput;
@@ -7,9 +7,7 @@
import org.eclipse.egf.model.pattern.*;
import org.eclipse.egf.pattern.execution.*;
import org.eclipse.egf.pattern.query.*;
-import org.polarsys.capella.core.data.capellacommon.Region;
import org.polarsys.capella.core.data.capellacommon.StateTransition;
-import org.polarsys.capella.docgen.util.CapellaElementService;
import org.polarsys.capella.docgen.util.StringUtil;
import org.polarsys.capella.docgen.util.pattern.helper.RegionHelper;
import org.polarsys.capella.common.data.behavior.AbstractEvent;
@@ -26,19 +24,17 @@ public static synchronized RegionDocGen create(String lineSeparator) {
}
public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
- protected final String TEXT_1 = "Modes and States
";
+ protected final String TEXT_1 = "";
protected final String TEXT_2 = NL;
- protected final String TEXT_3 = NL + "Realized Elements
" + NL;
- protected final String TEXT_4 = NL + "Realizing Elements
" + NL;
- protected final String TEXT_5 = NL + "Owned Transitions
" + NL + "" + NL
+ protected final String TEXT_3 = NL + "Owned Transitions
" + NL + "" + NL
+ " " + NL + " " + NL + " | Transition | " + NL
+ " Source | " + NL + " Target | " + NL + " Trigger | " + NL
+ " Effect | " + NL + " Description | " + NL + "
" + NL
+ " " + NL + " ";
- protected final String TEXT_6 = NL + "\t " + NL + " | ";
- protected final String TEXT_7 = " | " + NL + " ";
- protected final String TEXT_8 = " | " + NL + "
" + NL + "\t\t";
- protected final String TEXT_9 = NL + NL + "";
+ protected final String TEXT_4 = NL + "\t " + NL + " | ";
+ protected final String TEXT_5 = " | " + NL + " ";
+ protected final String TEXT_6 = " | " + NL + "
" + NL + "\t\t";
+ protected final String TEXT_7 = NL + NL + "";
public RegionDocGen() {
//Here is the constructor
@@ -94,6 +90,18 @@ public String orchestration(PatternContext ctx) throws Exception {
return null;
}
+ protected java.lang.String projectName = null;
+
+ public void set_projectName(java.lang.String object) {
+ this.projectName = object;
+ }
+
+ protected java.lang.String outputFolder = null;
+
+ public void set_outputFolder(java.lang.String object) {
+ this.outputFolder = object;
+ }
+
protected org.polarsys.capella.core.data.capellacommon.Region parameter = null;
public void set_parameter(org.polarsys.capella.core.data.capellacommon.Region object) {
@@ -109,17 +117,24 @@ public Map getParameters() {
protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception {
super.method_content(new StringBuffer(), ctx);
- String projectName = ctx.getValue("projectName").toString();
- String outputFolder = ctx.getValue("outputFolder").toString();
- Collection states = RegionHelper.getState(projectName, outputFolder, (Region) element);
-
- if (states.size() > 0) {
+ stringBuffer.append(TEXT_1);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.region.Region_ModesAndStates" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%>
- stringBuffer.append(TEXT_1);
- stringBuffer.append(TEXT_2);
- stringBuffer.append(StringUtil.stringListToBulette(states));
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", parameter);
+ callParameters.put("projectNameParameter", projectName);
+ callParameters.put("outputFolderParameter", outputFolder);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_stiNoKg9Eeu7bOcPHGGhcQ",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
InternalPatternContext ictx = (InternalPatternContext) ctx;
@@ -130,6 +145,8 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P
throws Exception {
element = parameter;
+ projectName = ctx.getValue("projectName").toString();
+ outputFolder = ctx.getValue("outputFolder").toString();
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString());
@@ -137,31 +154,38 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P
protected void method_endContent(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception {
- // Realized Elements
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizedElements" args="parameter:parameter"%>
- String outputFolder = ctx.getValue("outputFolder").toString();
- String projectName = ctx.getValue("projectName").toString();
- Collection allocations = CapellaElementService.getOutGoingAllocation(element, projectName,
- outputFolder);
- if (allocations.size() > 0) {
- stringBuffer.append(TEXT_3);
- stringBuffer.append(TEXT_2);
- stringBuffer.append(StringUtil.stringListToBulette(allocations));
- stringBuffer.append(TEXT_2);
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", parameter);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_yfHS4KgKEeu7bOcPHGGhcQ",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
+
stringBuffer.append(TEXT_2);
- // Realizing Elements
-
- //String outputFolder = ctx.getValue("outputFolder").toString();
- //String projectName = ctx.getValue("projectName").toString();
- Collection allocations2 = CapellaElementService.getIncomingAllocation(element, projectName,
- outputFolder);
- if (allocations2.size() > 0) {
- stringBuffer.append(TEXT_4);
- stringBuffer.append(TEXT_2);
- stringBuffer.append(StringUtil.stringListToBulette(allocations2));
- stringBuffer.append(TEXT_2);
+ stringBuffer.append(TEXT_2);
+ {
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizingElements" args="parameter:parameter"%>
+
+ InternalPatternContext ictx = (InternalPatternContext) ctx;
+ new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
+ stringBuffer.setLength(0);
+
+ final Map callParameters = new HashMap();
+ callParameters.put("parameter", parameter);
+ CallHelper.executeWithParameterInjection(
+ "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_6IqBsKgLEeu7bOcPHGGhcQ",
+ new ExecutionContext((InternalPatternContext) ctx), callParameters);
+ stringBuffer.setLength(0);
}
+
stringBuffer.append(TEXT_2);
// owned diagrams
stringBuffer.append(TEXT_2);
@@ -182,7 +206,7 @@ protected void method_endContent(final StringBuffer stringBuffer, final PatternC
stringBuffer.append(TEXT_2);
if (parameter.getOwnedTransitions() != null && parameter.getOwnedTransitions().size() > 0) {
- stringBuffer.append(TEXT_5);
+ stringBuffer.append(TEXT_3);
for (StateTransition transition : parameter.getOwnedTransitions()) {
String triggerName = "";
EList triggers = transition.getTriggers();
@@ -235,22 +259,22 @@ protected void method_endContent(final StringBuffer stringBuffer, final PatternC
trans_description = StringUtil.transformAREFString(transition, trans_description, projectName,
outputFolder);
}
- stringBuffer.append(TEXT_6);
+ stringBuffer.append(TEXT_4);
stringBuffer.append(trans_label);
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(trans_source);
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(trans_target);
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(triggerName);
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(trans_effect);
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(trans_description);
- stringBuffer.append(TEXT_8);
+ stringBuffer.append(TEXT_6);
}
}
- stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_7);
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), "endContent", stringBuffer.toString());
}
diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java
index 09b8db94..2d0871e8 100644
--- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java
+++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java
@@ -193,14 +193,14 @@ protected void method_setFileNameService(final StringBuffer stringBuffer, final
protected void method_endContent(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception {
{
- //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="element:element"%>
+ //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="element:parameter"%>
InternalPatternContext ictx = (InternalPatternContext) ctx;
new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString());
stringBuffer.setLength(0);
final Map callParameters = new HashMap();
- callParameters.put("element", element);
+ callParameters.put("parameter", element);
CallHelper.executeWithParameterInjection(
"platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_H6iekavLEeCas-LHcur3rg",
new ExecutionContext((InternalPatternContext) ctx), callParameters);
diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java
index 5078939d..f71d2539 100644
--- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java
+++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java
@@ -1,4 +1,4 @@
-//Generated with EGF 1.6.1.201906060805
+//Generated with EGF 1.6.2.202001031546
package org.polarsys.capella.docgen.foundations;
import org.eclipse.egf.common.helper.*;
@@ -22,10 +22,7 @@ public static synchronized CapellaElementEndContentDocGen create(String lineSepa
public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "";
- protected final String TEXT_2 = NL + "Realized Elements
" + NL;
- protected final String TEXT_3 = NL;
- protected final String TEXT_4 = NL + "Realizing Elements
" + NL;
- protected final String TEXT_5 = NL;
+ protected final String TEXT_2 = NL;
public CapellaElementEndContentDocGen() {
//Here is the constructor
@@ -43,12 +40,12 @@ public String generate(Object argument) throws Exception {
IQuery.ParameterDescription paramDesc = null;
Node.Container currentNode = ctx.getNode();
- List