Skip to content

Commit

Permalink
Merge pull request #956 from SilinMykola/955-add-missing-title-to-form
Browse files Browse the repository at this point in the history
955 add missing title to form
  • Loading branch information
eduard13 authored Feb 5, 2022
2 parents b1208cb + 60f239e commit 9237b26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public class NewModelsAction extends AnAction {

public static final String ACTION_NAME = "Magento 2 Models";
public static final String ACTION_DESCRIPTION = "Create a new Magento 2 models";
public static final String ACTION_DESCRIPTION = "Create a new Magento 2 model";

/**
* New controller action constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public NewEmailTemplateDialog(final Project project, final PsiDirectory director
super();
setContentPane(contentPane);
setModal(true);
setTitle(NewEmailTemplateAction.ACTION_DESCRIPTION);
getRootPane().setDefaultButton(buttonOK);
this.project = project;
this.validator = new NewEmailTemplateDialogValidator(project);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiDirectory;
import com.intellij.ui.DocumentAdapter;
import com.magento.idea.magento2plugin.actions.generation.NewModelsAction;
import com.magento.idea.magento2plugin.actions.generation.data.CollectionData;
import com.magento.idea.magento2plugin.actions.generation.data.ModelData;
import com.magento.idea.magento2plugin.actions.generation.data.ResourceModelData;
Expand Down Expand Up @@ -112,6 +113,7 @@ public NewModelsDialog(final Project project, final PsiDirectory directory) {

setContentPane(contentPane);
setModal(true);
setTitle(NewModelsAction.ACTION_DESCRIPTION);
getRootPane().setDefaultButton(buttonOK);
buttonOK.addActionListener(e -> onOK());
buttonCancel.addActionListener(e -> onCancel());
Expand Down

0 comments on commit 9237b26

Please sign in to comment.