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 1818import org .jetbrains .annotations .NotNull ;
1919
2020public class NewDbSchemaAction extends AnAction {
21+
2122 public static final String ACTION_NAME = "Magento 2 Declarative Schema XML" ;
2223 public static final String ACTION_DESCRIPTION = "Create a new declarative schema XML" ;
2324
@@ -32,16 +33,17 @@ public NewDbSchemaAction() {
3233 public void actionPerformed (final @ NotNull AnActionEvent event ) {
3334 final DataContext dataContext = event .getDataContext ();
3435 final IdeView view = LangDataKeys .IDE_VIEW .getData (dataContext );
36+
3537 if (view == null ) {
3638 return ;
3739 }
38-
3940 final Project project = CommonDataKeys .PROJECT .getData (dataContext );
41+
4042 if (project == null ) {
4143 return ;
4244 }
43-
4445 final PsiDirectory directory = view .getOrChooseDirectory ();
46+
4547 if (directory == null ) {
4648 return ;
4749 }
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ private void onOK() {
150150 return ;
151151 }
152152 generateWhitelistJsonFile (dbSchemaXmlData );
153+ exit ();
153154 }
154- exit ();
155155 }
156156
157157 /**
You can’t perform that action at this time.
0 commit comments