lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.diagram.synthesis.action.MemorizingExpandCollapseAction Class Reference

Action for toggling collapse/expand state of reactors that memorizes the state and allows correct initialization synthesis runs for the same model. More...

Inherits org.lflang.diagram.synthesis.action.AbstractAction.

Public Member Functions

IAction.ActionResult execute (final IAction.ActionContext context)
Reactor sourceAsReactor (final KNode node)
Object sourceElement (final KGraphElement elem)
boolean sourceIs (KNode node, Class<?> clazz)
boolean sourceIsReactor (final KNode node)

Static Public Member Functions

static Boolean getExpansionState (final Object obj)
static void setExpansionState (final KNode node, final Object memorizableObj, final IViewer viewer, final boolean expand)
 Sets the expansion state of a node and saves it for future synthesis.

Static Public Attributes

static final String ID
static final SynthesisOption MEMORIZE_EXPANSION_STATES
 The related synthesis option.

Detailed Description

Action for toggling collapse/expand state of reactors that memorizes the state and allows correct initialization synthesis runs for the same model.

Prevents automatic collapsing of manually expanded nodes.

Author
Alexander Schulz-Rosengarten

Member Function Documentation

◆ execute()

IAction.ActionResult org.lflang.diagram.synthesis.action.MemorizingExpandCollapseAction.execute ( final IAction.ActionContext context)

◆ getExpansionState()

Boolean org.lflang.diagram.synthesis.action.MemorizingExpandCollapseAction.getExpansionState ( final Object obj)
static
Returns
the memorized expansion state of the given model element or null if not memorized

◆ setExpansionState()

void org.lflang.diagram.synthesis.action.MemorizingExpandCollapseAction.setExpansionState ( final KNode node,
final Object memorizableObj,
final IViewer viewer,
final boolean expand )
static

Sets the expansion state of a node and saves it for future synthesis.

◆ sourceAsReactor()

Reactor org.lflang.diagram.synthesis.action.AbstractAction.sourceAsReactor ( final KNode node)
inherited

◆ sourceElement()

Object org.lflang.diagram.synthesis.action.AbstractAction.sourceElement ( final KGraphElement elem)
inherited

◆ sourceIs()

boolean org.lflang.diagram.synthesis.action.AbstractAction.sourceIs ( KNode node,
Class<?> clazz )
inherited

◆ sourceIsReactor()

boolean org.lflang.diagram.synthesis.action.AbstractAction.sourceIsReactor ( final KNode node)
inherited

Member Data Documentation

◆ ID

final String org.lflang.diagram.synthesis.action.MemorizingExpandCollapseAction.ID
static
Initial value:
=
"org.lflang.diagram.synthesis.action.MemorizingExpandCollapseAction"

◆ MEMORIZE_EXPANSION_STATES

final SynthesisOption org.lflang.diagram.synthesis.action.MemorizingExpandCollapseAction.MEMORIZE_EXPANSION_STATES
static
Initial value:
=
SynthesisOption.createCheckOption("Remember Collapsed/Expanded Reactors", true)

The related synthesis option.


The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/diagram/synthesis/action/MemorizingExpandCollapseAction.java