File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
third_party/src/main/java/com/jetbrains/lang/dart/ide/actions Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 11// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
22package com .jetbrains .lang .dart .ide .actions ;
33
4+ import com .intellij .CommonBundle ;
45import com .intellij .openapi .project .Project ;
56import com .intellij .openapi .ui .Messages ;
67import com .intellij .openapi .util .NlsContexts ;
@@ -15,10 +16,11 @@ public class DartPubCacheRepairAction extends DartPubActionBase {
1516 return DartBundle .message ("dart.pub.cache.repair.title" );
1617 }
1718
18- @ Override
19- protected String @ Nullable [] calculatePubParameters (final @ NotNull Project project , final @ NotNull VirtualFile pubspecYamlFile ) {
20- final int choice = Messages .showOkCancelDialog (project , DartBundle .message ("dart.pub.cache.repair.message" ),
21- DartBundle .message ("dart.pub.cache.repair.title" ), Messages .getWarningIcon ());
22- return choice == Messages .OK ? new String []{"cache" , "repair" } : null ;
23- }
19+ @ Override
20+ protected String @ Nullable [] calculatePubParameters (final @ NotNull Project project , final @ NotNull VirtualFile pubspecYamlFile ) {
21+ final int choice = Messages .showOkCancelDialog (project , DartBundle .message ("dart.pub.cache.repair.message" ),
22+ DartBundle .message ("dart.pub.cache.repair.title" ), CommonBundle .getYesButtonText (),
23+ CommonBundle .getNoButtonText (), Messages .getWarningIcon ());
24+ return choice == Messages .OK ? new String []{"cache" , "repair" } : null ;
25+ }
2426}
You can’t perform that action at this time.
0 commit comments