File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed
flutter-idea/src/io/flutter/actions Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -234,5 +234,10 @@ public void actionPerformed(AnActionEvent e) {
234234 service .setSelectedDevice (device );
235235 }
236236 }
237+
238+ @ Override
239+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
240+ return ActionUpdateThread .BGT ;
241+ }
237242 }
238243}
Original file line number Diff line number Diff line change 55 */
66package io .flutter .actions ;
77
8+ import com .intellij .openapi .actionSystem .ActionUpdateThread ;
89import com .intellij .openapi .actionSystem .AnAction ;
910import com .intellij .openapi .actionSystem .AnActionEvent ;
1011import com .intellij .openapi .project .Project ;
@@ -47,4 +48,9 @@ public OpenEmulatorAction(AndroidEmulator emulator) {
4748 public void actionPerformed (@ NotNull AnActionEvent event ) {
4849 emulator .startEmulator ();
4950 }
51+
52+ @ Override
53+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
54+ return ActionUpdateThread .BGT ;
55+ }
5056}
Original file line number Diff line number Diff line change 55 */
66package io .flutter .actions ;
77
8+ import com .intellij .openapi .actionSystem .ActionUpdateThread ;
89import com .intellij .openapi .actionSystem .AnAction ;
910import com .intellij .openapi .actionSystem .AnActionEvent ;
1011import com .intellij .openapi .project .Project ;
@@ -26,6 +27,11 @@ public void update(@NotNull AnActionEvent e) {
2627 e .getPresentation ().setEnabled (enabled );
2728 }
2829
30+ @ Override
31+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
32+ return ActionUpdateThread .BGT ;
33+ }
34+
2935 @ Override
3036 public void actionPerformed (@ NotNull AnActionEvent event ) {
3137 @ Nullable final Project project = event .getProject ();
Original file line number Diff line number Diff line change 55 */
66package io .flutter .actions ;
77
8+ import com .intellij .openapi .actionSystem .ActionUpdateThread ;
89import com .intellij .openapi .actionSystem .AnAction ;
910import com .intellij .openapi .actionSystem .AnActionEvent ;
1011import com .intellij .openapi .project .Project ;
1112import io .flutter .FlutterInitializer ;
1213import io .flutter .run .daemon .DeviceService ;
14+ import org .jetbrains .annotations .NotNull ;
1315
1416public class RestartFlutterDaemonAction extends AnAction {
1517 public RestartFlutterDaemonAction () {
@@ -27,4 +29,9 @@ public void actionPerformed(AnActionEvent event) {
2729
2830 DeviceService .getInstance (project ).restart ();
2931 }
32+
33+ @ Override
34+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
35+ return ActionUpdateThread .BGT ;
36+ }
3037}
You can’t perform that action at this time.
0 commit comments