Skip to content

Commit

Permalink
refresh GModel State (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Jan 10, 2025
1 parent 8bbdbbc commit 9c663d8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.eclipse.emf.common.command.Command;
import org.eclipse.glsp.graph.GModelElement;
import org.eclipse.glsp.server.actions.ActionDispatcher;
import org.eclipse.glsp.server.actions.SelectAction;
import org.eclipse.glsp.server.operations.CreateNodeOperation;
import org.openbpmn.bpmn.BPMNNS;
import org.openbpmn.bpmn.elements.core.BPMNElementNode;
Expand Down Expand Up @@ -131,11 +130,11 @@ protected void executeOperation(final CreateNodeOperation operation) {
}
}
}

modelState.reset();
// refresh model State...
modelState.refreshGModelState();
if (elementID != null) {
// select event
actionDispatcher.dispatchAfterNextUpdate(new SelectAction(List.of(elementID)));
modelState.refreshSelection(elementID);
}
}

Expand Down

0 comments on commit 9c663d8

Please sign in to comment.