@@ -46,7 +46,9 @@ public NativeEditorNotificationProvider(@NotNull Project project) {
46
46
}
47
47
48
48
@ Nullable
49
- private EditorNotificationPanel createPanelForAction (@ NotNull FileEditor fileEditor , @ NotNull VirtualFile root , @ Nullable String actionName ) {
49
+ private EditorNotificationPanel createPanelForAction (@ NotNull FileEditor fileEditor ,
50
+ @ NotNull VirtualFile root ,
51
+ @ Nullable String actionName ) {
50
52
if (actionName == null ) {
51
53
return null ;
52
54
}
@@ -113,7 +115,9 @@ class NativeEditorActionsPanel extends EditorNotificationPanel {
113
115
text ("Flutter commands" );
114
116
115
117
// Ensure this project is a Flutter project by updating the menu action. It will only be visible for Flutter projects.
116
- myAction .update (AnActionEvent .createFromDataContext (ActionPlaces .EDITOR_TOOLBAR , myAction .getTemplatePresentation (), makeContext ()));
118
+ myAction .update (
119
+ AnActionEvent .createEvent (makeContext (), myAction .getTemplatePresentation (), ActionPlaces .EDITOR_TOOLBAR , ActionUiKind .NONE , null ));
120
+
117
121
isVisible = myAction .getTemplatePresentation ().isVisible ();
118
122
createActionLabel (myAction .getTemplatePresentation ().getText (), this ::performAction )
119
123
.setToolTipText (myAction .getTemplatePresentation ().getDescription ());
@@ -134,7 +138,7 @@ private boolean isValidForFile() {
134
138
private void performAction () {
135
139
// Open Xcode or Android Studio. If already running AS then just open a new window.
136
140
myAction .actionPerformed (
137
- AnActionEvent .createFromDataContext ( ActionPlaces . EDITOR_TOOLBAR , myAction .getTemplatePresentation (), makeContext () ));
141
+ AnActionEvent .createEvent ( makeContext () , myAction .getTemplatePresentation (), ActionPlaces . EDITOR_TOOLBAR , ActionUiKind . NONE , null ));
138
142
}
139
143
140
144
private DataContext makeContext () {
0 commit comments