Skip to content

Commit af54479

Browse files
Add a tooltip to the tool window refresh action (#7923)
<img width="523" alt="Screenshot 2025-02-04 at 11 40 35 AM" src="https://github.com/user-attachments/assets/76b22a9f-7e22-4baf-94f7-8ef15047a061" /> Fixes #7895
1 parent 8f0be3c commit af54479

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

flutter-idea/src/io/flutter/FlutterBundle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ flutter.title=Flutter
4343
flutter.sdk.notAvailable.title=No Flutter SDK Configured
4444
flutter.sdk.notAvailable.message=This action requires a Flutter SDK to be configured; configure one now?
4545

46+
flutter.toolwindow.action.refresh=Refresh Contents
47+
4648
outdated.dependencies.inspection.name=Outdated package dependencies
4749
pub.get.not.run='Pub get' has not been run
4850
pubspec.edited=Pubspec has been edited

flutter-idea/src/io/flutter/actions/RefreshToolWindowAction.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.intellij.openapi.actionSystem.AnActionEvent;
1010
import com.intellij.openapi.project.DumbAwareAction;
1111
import com.intellij.openapi.project.Project;
12+
import io.flutter.FlutterBundle;
1213
import io.flutter.FlutterUtils;
1314
import org.jetbrains.annotations.NotNull;
1415

@@ -18,13 +19,14 @@ public class RefreshToolWindowAction extends DumbAwareAction {
1819
private String toolWindowId;
1920

2021
public RefreshToolWindowAction() {
21-
super(AllIcons.Actions.Refresh);
22+
super(FlutterBundle.message("flutter.toolwindow.action.refresh"), null, AllIcons.Actions.Refresh);
2223
}
2324

2425
public RefreshToolWindowAction(@NotNull String toolWindowId) {
25-
super(AllIcons.Actions.Refresh);
26+
super(FlutterBundle.message("flutter.toolwindow.action.refresh"), null, AllIcons.Actions.Refresh);
2627
this.toolWindowId = toolWindowId;
2728
}
29+
2830
@Override
2931
public void actionPerformed(@NotNull AnActionEvent event) {
3032
final Project project = event.getProject();

0 commit comments

Comments
 (0)