File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/com/magento/idea/magento2plugin/actions/generation Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
import org .jetbrains .annotations .NotNull ;
19
19
20
20
public class NewDbSchemaAction extends AnAction {
21
+
21
22
public static final String ACTION_NAME = "Magento 2 Declarative Schema XML" ;
22
23
public static final String ACTION_DESCRIPTION = "Create a new declarative schema XML" ;
23
24
@@ -32,16 +33,17 @@ public NewDbSchemaAction() {
32
33
public void actionPerformed (final @ NotNull AnActionEvent event ) {
33
34
final DataContext dataContext = event .getDataContext ();
34
35
final IdeView view = LangDataKeys .IDE_VIEW .getData (dataContext );
36
+
35
37
if (view == null ) {
36
38
return ;
37
39
}
38
-
39
40
final Project project = CommonDataKeys .PROJECT .getData (dataContext );
41
+
40
42
if (project == null ) {
41
43
return ;
42
44
}
43
-
44
45
final PsiDirectory directory = view .getOrChooseDirectory ();
46
+
45
47
if (directory == null ) {
46
48
return ;
47
49
}
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ private void onOK() {
150
150
return ;
151
151
}
152
152
generateWhitelistJsonFile (dbSchemaXmlData );
153
+ exit ();
153
154
}
154
- exit ();
155
155
}
156
156
157
157
/**
You can’t perform that action at this time.
0 commit comments