diff --git a/third_party/src/main/java/com/jetbrains/lang/dart/ide/actions/DartPubCacheRepairAction.java b/third_party/src/main/java/com/jetbrains/lang/dart/ide/actions/DartPubCacheRepairAction.java index 684e42874..a4343ffe8 100644 --- a/third_party/src/main/java/com/jetbrains/lang/dart/ide/actions/DartPubCacheRepairAction.java +++ b/third_party/src/main/java/com/jetbrains/lang/dart/ide/actions/DartPubCacheRepairAction.java @@ -1,6 +1,7 @@ // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.jetbrains.lang.dart.ide.actions; +import com.intellij.CommonBundle; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.Messages; import com.intellij.openapi.util.NlsContexts; @@ -15,10 +16,11 @@ public class DartPubCacheRepairAction extends DartPubActionBase { return DartBundle.message("dart.pub.cache.repair.title"); } - @Override - protected String @Nullable [] calculatePubParameters(final @NotNull Project project, final @NotNull VirtualFile pubspecYamlFile) { - final int choice = Messages.showOkCancelDialog(project, DartBundle.message("dart.pub.cache.repair.message"), - DartBundle.message("dart.pub.cache.repair.title"), Messages.getWarningIcon()); - return choice == Messages.OK ? new String[]{"cache", "repair"} : null; - } + @Override + protected String @Nullable [] calculatePubParameters(final @NotNull Project project, final @NotNull VirtualFile pubspecYamlFile) { + final int choice = Messages.showOkCancelDialog(project, DartBundle.message("dart.pub.cache.repair.message"), + DartBundle.message("dart.pub.cache.repair.title"), CommonBundle.getYesButtonText(), + CommonBundle.getNoButtonText(), Messages.getWarningIcon()); + return choice == Messages.OK ? new String[]{"cache", "repair"} : null; + } }