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) {
234
234
service .setSelectedDevice (device );
235
235
}
236
236
}
237
+
238
+ @ Override
239
+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
240
+ return ActionUpdateThread .BGT ;
241
+ }
237
242
}
238
243
}
Original file line number Diff line number Diff line change 5
5
*/
6
6
package io .flutter .actions ;
7
7
8
+ import com .intellij .openapi .actionSystem .ActionUpdateThread ;
8
9
import com .intellij .openapi .actionSystem .AnAction ;
9
10
import com .intellij .openapi .actionSystem .AnActionEvent ;
10
11
import com .intellij .openapi .project .Project ;
@@ -47,4 +48,9 @@ public OpenEmulatorAction(AndroidEmulator emulator) {
47
48
public void actionPerformed (@ NotNull AnActionEvent event ) {
48
49
emulator .startEmulator ();
49
50
}
51
+
52
+ @ Override
53
+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
54
+ return ActionUpdateThread .BGT ;
55
+ }
50
56
}
Original file line number Diff line number Diff line change 5
5
*/
6
6
package io .flutter .actions ;
7
7
8
+ import com .intellij .openapi .actionSystem .ActionUpdateThread ;
8
9
import com .intellij .openapi .actionSystem .AnAction ;
9
10
import com .intellij .openapi .actionSystem .AnActionEvent ;
10
11
import com .intellij .openapi .project .Project ;
@@ -26,6 +27,11 @@ public void update(@NotNull AnActionEvent e) {
26
27
e .getPresentation ().setEnabled (enabled );
27
28
}
28
29
30
+ @ Override
31
+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
32
+ return ActionUpdateThread .BGT ;
33
+ }
34
+
29
35
@ Override
30
36
public void actionPerformed (@ NotNull AnActionEvent event ) {
31
37
@ Nullable final Project project = event .getProject ();
Original file line number Diff line number Diff line change 5
5
*/
6
6
package io .flutter .actions ;
7
7
8
+ import com .intellij .openapi .actionSystem .ActionUpdateThread ;
8
9
import com .intellij .openapi .actionSystem .AnAction ;
9
10
import com .intellij .openapi .actionSystem .AnActionEvent ;
10
11
import com .intellij .openapi .project .Project ;
11
12
import io .flutter .FlutterInitializer ;
12
13
import io .flutter .run .daemon .DeviceService ;
14
+ import org .jetbrains .annotations .NotNull ;
13
15
14
16
public class RestartFlutterDaemonAction extends AnAction {
15
17
public RestartFlutterDaemonAction () {
@@ -27,4 +29,9 @@ public void actionPerformed(AnActionEvent event) {
27
29
28
30
DeviceService .getInstance (project ).restart ();
29
31
}
32
+
33
+ @ Override
34
+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
35
+ return ActionUpdateThread .BGT ;
36
+ }
30
37
}
You can’t perform that action at this time.
0 commit comments