Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flutter-idea/src/io/flutter/FlutterBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ flutter.title=Flutter
flutter.sdk.notAvailable.title=No Flutter SDK Configured
flutter.sdk.notAvailable.message=This action requires a Flutter SDK to be configured; configure one now?

flutter.toolwindow.action.refresh=Refresh Contents

outdated.dependencies.inspection.name=Outdated package dependencies
pub.get.not.run='Pub get' has not been run
pubspec.edited=Pubspec has been edited
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.DumbAwareAction;
import com.intellij.openapi.project.Project;
import io.flutter.FlutterBundle;
import io.flutter.FlutterUtils;
import org.jetbrains.annotations.NotNull;

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

public RefreshToolWindowAction() {
super(AllIcons.Actions.Refresh);
super(FlutterBundle.message("flutter.toolwindow.action.refresh"), null, AllIcons.Actions.Refresh);
}

public RefreshToolWindowAction(@NotNull String toolWindowId) {
super(AllIcons.Actions.Refresh);
super(FlutterBundle.message("flutter.toolwindow.action.refresh"), null, AllIcons.Actions.Refresh);
this.toolWindowId = toolWindowId;
}

@Override
public void actionPerformed(@NotNull AnActionEvent event) {
final Project project = event.getProject();
Expand Down