-
I am using currently The situation is the following:
After that operation the elements are still selected which I want to avoid. For that reason I added a @Override
public Optional<Command> createCommand(final CreateEdgeOperation operation) {
return commandOf(() -> executeOperation(operation));
}
protected void executeOperation(final CreateEdgeOperation operation) {
....
ArrayList<String> deselectedElementsIDs = new ArrayList<String>();
deselectedElementsIDs.add(sourceId);
deselectedElementsIDs.add(targetId);
actionDispatcher.dispatchAfterNextUpdate(
new SelectAction(
List.of(edgeId),
deselectedElementsIDs)
);
} But this does not work. The interesting thing is that my new selection (the newly created edge) is selected. So as a result now 3 elements are selected. How can I achieve that the two initial elements are deselected? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the reason for the problem by myself. The Java Server Side is correct and works as expected. But I have had another javaScript component on the client side that implemented a So everything is fine - all works as expected, but sometimes I forget about the client... ;-) |
Beta Was this translation helpful? Give feedback.
I found the reason for the problem by myself. The Java Server Side is correct and works as expected.
But I have had another javaScript component on the client side that implemented a
SelectionListener
. And this custom component caused the problem.So everything is fine - all works as expected, but sometimes I forget about the client... ;-)