is it possible to assign new values to ActionContextParameters/DataKeys inside the execute(event) function of an action?
1) I've created an action, that requires context parameters with the DataKeys NODE and EDITOR_COMPONENT
2) If i want to access the values of these parameters inside the execute function i can do it with the this keyword or via the event parameter:
3) Now i was wondering how i can change the values of these parameters programmatically? For instance, to execute an action inside the execute function with other ActionContextParameters.
My best attempt
I've tried it with the MPS.IDEA/com.intellij.ide.DataManager, because i found out, that this class manages the same DataContext as the event parameter. The attempt failed because the DataManager class uses Key<T> instead of DataKey<T> objects and i was not able to figure out how to resolve the proper Key<T> object.
Thank you in advance and best regards