Search in sources :

Example 1 with SimpleActionExecutor

use of org.osate.ge.internal.services.impl.SimpleActionExecutor in project osate2 by osate.

the class AgeDiagram method resetActionExecutor.

/**
 * Resets the action executor. Sets the action executor to a default value which simply executes the action. Once this method has been
 * called, {@link #setActionExecutor(ActionExecutor)} may be called again. The set -> reset mechanism is used to detect errors which
 * would occur if the action executor was replaced. Diagrams editors typically create the action executor and the same action executor
 * should be used for all actions related to the diagram.
 * @see #setActionExecutor(ActionExecutor)
 */
public void resetActionExecutor() {
    this.actionExecutor = new SimpleActionExecutor();
    actionExecutorSet = false;
}
Also used : SimpleActionExecutor(org.osate.ge.internal.services.impl.SimpleActionExecutor)

Example 2 with SimpleActionExecutor

use of org.osate.ge.internal.services.impl.SimpleActionExecutor in project osate2 by osate.

the class DiagramUpdaterTest method beforeTest.

@Before
public void beforeTest() {
    testModel.setModel(newBO(newBO(newBO(2), newBO(4), newBO(newBO(6), newBO(8), newBO(10))), newBO(newBO(12))));
    diagram = new AgeDiagram();
    diagramUpdater = new DiagramUpdater(testModel, testModel, new SimpleActionExecutor(), testModel, testModel);
}
Also used : SimpleActionExecutor(org.osate.ge.internal.services.impl.SimpleActionExecutor) AgeDiagram(org.osate.ge.internal.diagram.runtime.AgeDiagram) DiagramUpdater(org.osate.ge.internal.diagram.runtime.updating.DiagramUpdater) Before(org.junit.Before)

Aggregations

SimpleActionExecutor (org.osate.ge.internal.services.impl.SimpleActionExecutor)2 Before (org.junit.Before)1 AgeDiagram (org.osate.ge.internal.diagram.runtime.AgeDiagram)1 DiagramUpdater (org.osate.ge.internal.diagram.runtime.updating.DiagramUpdater)1