In my first pass, I'm having trouble finding the right IntelliJ/Java API that would allow us to attach a refresh action to only one tab within a tool window (for example, if there are multiple apps running, there will be an inspector tab for each app). So I'll probably try to land this as refreshing all tabs in a tool window for now.
I also can't find how to add the action to the menu (toolWindow.setAdditionalGearActions seems like the obvious method, but didn't work), so I just made it a separate button. I figure that's more visible anyway:
I'm going to open a separate issue to further discuss multiple app / multiple tab per tool window situations.
Fixes https://github.com/flutter/flutter-intellij/issues/7617
In my first pass, I'm having trouble finding the right IntelliJ/Java API that would allow us to attach a refresh action to only one tab within a tool window (for example, if there are multiple apps running, there will be an inspector tab for each app). So I'll probably try to land this as refreshing all tabs in a tool window for now.
I also can't find how to add the action to the menu (
toolWindow.setAdditionalGearActions
seems like the obvious method, but didn't work), so I just made it a separate button. I figure that's more visible anyway:I'm going to open a separate issue to further discuss multiple app / multiple tab per tool window situations.