Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into icon-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sr committed Aug 18, 2022
2 parents bac0c0c + 0d2f64e commit aa99002
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
11 changes: 9 additions & 2 deletions org.lflang.diagram/src/log4j.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
<log4j:configuration>

<category name="org.eclipse.xtext.linking.impl">
<priority value="off"/>
</category>

<category name="org.eclipse.xtext.validation">
<priority value="off"/>
</category>
<category name="org.eclipse.xtext.parser.antlr">
<priority value="off"/>
</category>
<category name="org.eclipse.xtext.util">
<priority value="off"/>
</category>
</log4j:configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ public List<DisplayedActionData> getDisplayedActions() {
@Override
public KNode transform(final Model model) {
KNode rootNode = _kNodeExtensions.createNode();
setLayoutOption(rootNode, CoreOptions.ALGORITHM, LayeredOptions.ALGORITHM_ID);
setLayoutOption(rootNode, CoreOptions.DIRECTION, Direction.RIGHT);
setLayoutOption(rootNode, CoreOptions.PADDING, new ElkPadding(0));

try {
// Find main
Expand Down Expand Up @@ -301,6 +304,7 @@ public KNode transform(final Model model) {
}
_kRenderingExtensions.addInvisibleContainerRendering(child);
setLayoutOption(child, CoreOptions.ALGORITHM, LayeredOptions.ALGORITHM_ID);
setLayoutOption(child, CoreOptions.DIRECTION, Direction.RIGHT);
setLayoutOption(child, CoreOptions.PADDING, new ElkPadding(0));
// Legacy ordering option.
setLayoutOption(child, CoreOptions.PRIORITY, reactorNodes.size() - index); // Order!
Expand Down
1 change: 1 addition & 0 deletions org.lflang/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Require-Bundle: org.eclipse.xtext,
Bundle-RequiredExecutionEnvironment: JavaSE-17
Export-Package: org.lflang,
org.lflang.generator,
org.lflang.generator.c,
org.lflang.graph,
org.lflang.lf,
org.lflang.lf.impl,
Expand Down
2 changes: 1 addition & 1 deletion org.lflang/src/org/lflang/generator/TargetTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ default String getTargetType(InferredType type) {
} else if (type.isVariableSizeList) {
return getTargetVariableSizeListType(type.baseType());
}
return type.toText();
return type.toOriginalText();
}

/**
Expand Down

0 comments on commit aa99002

Please sign in to comment.