-
In GLSP, when I update a GNode (e.g. changing text labels, or resizing) the element shows an nice animation Nevertheless, I would like to ask whether it is possible to switched off this feature for specific parts of a GNode of for a GNode in general?? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
HI @rsoika, Each server operation results in an [ I admit that this is not ideal and I have created #938 to track this. |
Beta Was this translation helpful? Give feedback.
-
Thanks @tortmayr, finally I solved the issue for OpenBPMN by overwriting the public class BPMNDiagramConfiguration extends BaseDiagramConfiguration {
......
@Override
public boolean animatedUpdate() {
return false;
}
....
} |
Beta Was this translation helpful? Give feedback.
HI @rsoika,
selective animation is a bit tricky.
First of all in GLSP/sprotty animations are not directly coupled with a model element. Instead they are tied to specific operation/command.
Each server operation results in an [
UpdateModelAction
](https://github.com/eclipse-glsp/glsp/blob/master/PROTOCOL.md#243-updatemodelaction. This action has a flag to indicate whether the update should be animated or not. Currently this animation flag is controlled globally via the DiagramConfiguration and the corresponding actions are dispatched by theModelSubmissionHandler
.I admit that this is not ideal and I have created #938 to track this.
In the meantime you would have to customize the
ModelSubmis…