Introduction:
I write an Eclipse plugin containing an editor which I implement with GEF.
I have nodes and edges in my editor.
The nodes have names and I want to edit the name of the nodes via direct edit.
I install the direct edit policy to the node edit parts:
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new NodeNameDirectEditPolicy());
and the direct edit policy implements the direct edit command.
The problem is: To confirm the direct edit I have to press STRG + ENTER. If I only press ENTER the direct edit is expanded to a new line. Is there any way to make it possible that the direct edit can be confirmed simply with ENTER? multiline node names are not needed.