Replies: 9 comments
-
At first glance it looks like you configured everything right. Did you also include the |
Beta Was this translation helpful? Give feedback.
-
[MoHcmp] yes, i included modelHintsModule |
Beta Was this translation helpful? Give feedback.
-
[MoHcmp] what methods should i debug to check why edge can be connected? |
Beta Was this translation helpful? Give feedback.
-
[MoHcmp] I figured out whats wrong. I should also return shape type hints from org.eclipse.glsp.server.diagram.DiagramConfiguration.getNodeTypeHints(). Without this figures hints edge connection works wrong. |
Beta Was this translation helpful? Give feedback.
-
[MoHcmp] I need to some other things with edge creation:
Can i configure such edge creation rules? |
Beta Was this translation helpful? Give feedback.
-
Hi, it looks like you discovered a bug in our implementation of the |
Beta Was this translation helpful? Give feedback.
-
I have created #195 to track this |
Beta Was this translation helpful? Give feedback.
-
[MoHcmp] As i understood i can deny edges from creation in CreateEdgeOperationHandlers, but i cannot do 'Cannot connect' animation on client? |
Beta Was this translation helpful? Give feedback.
-
Hi, yes you are correct, there is currently no feedback for edge creation that got denied on the server side. In general there are a couple of issues with the current implementation of EdgeTypeHints and deriving client-side feeback. I have created #211 to track this |
Beta Was this translation helpful? Give feedback.
-
Hello. I created simple diagram with 'Source', 'Translator' and 'Destination'. I created own edge type - 'TestEdge'. For this edge i created EdgeTypeHint with elementTypeId = 'TestEdge', sourceElementTypeIds = ['Source', 'Translator'], targetElementTypeIds = ['Translator', 'Destination']. But on the diagram i can create 'TestEdge' from destination to source.
I can return empty optional (but i get IllegalArgumentException 'Creation of connection failed for source: %s , target: %s') from edge create operation to prevent creation but then there is no graphical effects that such edge cannot be created. Do i use EdgeTypeHint right?
(Using 'next' version of glsp)
original thread by MoHcmp
Beta Was this translation helpful? Give feedback.
All reactions