flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.98k stars 319 forks source link

Add button to refresh tool windows #7633

Closed helin24 closed 2 months ago

helin24 commented 2 months ago

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:

Screenshot 2024-08-29 at 1 05 24 PM

I'm going to open a separate issue to further discuss multiple app / multiple tab per tool window situations.