org.eclipse.glsp.server.diagram.DiagramConfiguration access specifier issue #625
-
org.eclipse.glsp.server.diagram.DiagramConfiguration.animatedUpdate() method will return always true. But my requirement is to avoid animation of diagrams while update. I cannot override animatedUpdate() method in the child class as it is a default method present in the interface. Any way we can configure animation flag? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can overwrite default methods of interfaces just as any other interface method. @Override
public boolean animatedUpdate() {
return false;
} |
Beta Was this translation helpful? Give feedback.
-
Sorry, earlier I was using default as access specifier default boolean animatedUpdate() { My issue is resolved. |
Beta Was this translation helpful? Give feedback.
You can overwrite default methods of interfaces just as any other interface method.
The following code in your
DiagramConfiguration
class should work just fine.