Enable Direct Edit Label after Node Creation [message #1797131] |
Thu, 25 October 2018 18:03  |
Eclipse User |
|
|
|
Hi,
I created direct edit labels for some elements in my Sirius editor. Is there any way to enable them directly after I created an element, so that the user does not have to create the node and then select the property and open the direct edit manually? I tried using the "Elements to select" property, but all it does is selecting the element and not opening the edit label. When I am trying to navigate to the direct edit label via an Acceleo expression in the "Elements to select" property, it just silently fails. Sending a direct edit request to the edit part in an external java action does not work because the View seems to be created after the execution of the java action.
I noticed it works for Notes/Note Attachments, but was not able to find the exact implementation.
Regards,
Larissa
|
|
|
|
|
|
Re: Enable Direct Edit Label after Node Creation [message #1797503 is a reply to message #1797500] |
Wed, 31 October 2018 15:13  |
Eclipse User |
|
|
|
Edit: Sorry, I confused Services and Java Actions. But I just tried the service and it seems to has the same problem as the external java action in that it is executed before the editPart is created. Is there any way to force it to be executed later? Now I just added a "Change context" where I placed the service call after the creation of the node and the instance contained in it. I want to access the editPart of the instance.
Hi,
that's what I've tried already. I included an external java action in the node creation but the problem is that when the external java action is executed, the editPart is not yet created so I can't send an EditRequest to it. Do you have a hint on how to ensure that it is created earlier/the java action is executed later or which listener I could register on the editor in order to get notified when the editPart is created?
Regards,
Larissa
[Updated on: Wed, 31 October 2018 15:45] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03229 seconds