i have created a tool window with a button. When this button is pressed, then another action is executed (dynamically chosen). This action is in 99% of the time a refactoring action. The problem i have is that these actions require a correct DataContext and the dataContext when clicking on a gui is completely different sometimes.
Is there a way to "fake" an action event, so it looks and feels like the action is triggered via shortcut from within an editor and not through a random button in a gui?
When i click on the tool window button and dynamically the "Enter" action is chosen, then "enter" is pressed/triggered inside the tool window and NOT in the editor