Skip to content

Commit d890d83

Browse files
877: Code refactoring
1 parent 01738e9 commit d890d83

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/com/magento/idea/magento2plugin/actions/generation/NewDbSchemaAction.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.jetbrains.annotations.NotNull;
1919

2020
public 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
}

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewDbSchemaDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ private void onOK() {
150150
return;
151151
}
152152
generateWhitelistJsonFile(dbSchemaXmlData);
153+
exit();
153154
}
154-
exit();
155155
}
156156

157157
/**

0 commit comments

Comments
 (0)