18
18
import com .intellij .notification .NotificationGroup ;
19
19
import com .intellij .notification .NotificationGroupManager ;
20
20
import com .intellij .notification .NotificationType ;
21
- import com .intellij .openapi .actionSystem .AnAction ;
22
- import com .intellij .openapi .actionSystem .AnActionEvent ;
23
- import com .intellij .openapi .actionSystem .CommonDataKeys ;
24
- import com .intellij .openapi .actionSystem .DataContext ;
21
+ import com .intellij .openapi .actionSystem .*;
25
22
import com .intellij .openapi .actionSystem .ex .AnActionListener ;
26
23
import com .intellij .openapi .application .ApplicationManager ;
27
24
import com .intellij .openapi .application .ModalityState ;
@@ -133,11 +130,8 @@ private FlutterReloadManager(@NotNull Project project) {
133
130
private @ Nullable Project eventProject ;
134
131
private @ Nullable Editor eventEditor ;
135
132
136
- /**
137
- * WARNING on the deprecation of this API: the modification of this file was made at one point to resolve this error, but Flutter
138
- * Hot Reload was broken, see https://github.com/flutter/flutter-intellij/issues/6996, the change had to be rolled back.
139
- */
140
- public void beforeActionPerformed (@ NotNull AnAction action , @ NotNull DataContext dataContext , @ NotNull AnActionEvent event ) {
133
+ public void beforeActionPerformed (@ NotNull AnAction action , @ NotNull AnActionEvent event ) {
134
+ // In case of hot-reload breakages, see: https://github.com/flutter/flutter-intellij/issues/6996
141
135
if (!(action instanceof SaveAllAction )) {
142
136
return ;
143
137
}
@@ -154,10 +148,8 @@ public void beforeActionPerformed(@NotNull AnAction action, @NotNull DataContext
154
148
}
155
149
}
156
150
157
- /**
158
- * See note above on {{@link #beforeActionPerformed(AnAction, DataContext, AnActionEvent)}}.
159
- */
160
- public void afterActionPerformed (@ NotNull AnAction action , @ NotNull DataContext dataContext , @ NotNull AnActionEvent event ) {
151
+ public void afterActionPerformed (@ NotNull AnAction action , @ NotNull AnActionEvent event , @ NotNull AnActionResult result ) {
152
+ // In case of hot-reload breakages, see: https://github.com/flutter/flutter-intellij/issues/6996
161
153
if (!(action instanceof SaveAllAction )) {
162
154
return ;
163
155
}
0 commit comments