Skip to content

Commit

Permalink
Merge pull request #2267 from soerendomroes/sdo/applyOptionAnnotation…
Browse files Browse the repository at this point in the history
…ForModalModels

Set annotated layout options for modes.
  • Loading branch information
lhstrh authored May 13, 2024
2 parents 422eb03 + 02f965a commit b07f319
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public class ModeDiagrams extends AbstractSynthesisExtensions {
@Inject @Extension private LinguaFrancaStyleExtensions _linguaFrancaStyleExtensions;
@Inject @Extension private UtilityExtensions _utilityExtensions;
@Inject @Extension private LayoutPostProcessing _layoutPostProcessing;
@Inject @Extension private LinguaFrancaSynthesis synthesis;

@Extension private KRenderingFactory _kRenderingFactory = KRenderingFactory.eINSTANCE;

Expand Down Expand Up @@ -340,6 +341,7 @@ public void handleModes(List<KNode> nodes, ReactorInstance reactor) {
modeContainer.getProperty(LayeredOptions.SPACING_NODE_NODE_BETWEEN_LAYERS)
+ (getBooleanValue(SHOW_TRANSITION_LABELS) ? 6.0 : 10.0));
}
synthesis.setAnnotatedLayoutOptions(reactor.reactorDefinition, modeContainer);

var modeContainerPorts = new HashMap<KPort, KPort>();
for (var mode : reactor.modes) {
Expand Down

0 comments on commit b07f319

Please sign in to comment.