Community
Participate
Working Groups
Direct edit label precondition behavior is not consistent. For diagram elements that are containers, if the direct edit precondition is evaluated to false, the edit box for the label is not displayed at all if the user tries to perform a direct edit. For diagram elements that are nodes, the edit box is displayed, the user can input some text, but the edit does not take effect when the user presses Enter.
DirectEditCommandBuilder.canDirectEdit() is called during buildCommand() and also in org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramNameEditPart.isDirectEditEnabled(). It is not called in the DNode with "node" label position. Additional check: When the position is set to "border" there is a NodeNameEditPart we should retrieve the same behavior than the container, when the label of the node is selected. Homologation scenario will be created during correct as support for unit tests
Concluding from the comments added by Obeo, the fix seems trivial. Any chance it can come with the next release of Sirius?
Any update on this issue?