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.
|
| 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.
|
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
◆ 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 |
◆ 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