diff --git a/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.form b/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.form index 720f151f3..3908688d6 100644 --- a/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.form +++ b/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.form @@ -71,12 +71,12 @@ - + - + diff --git a/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.java b/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.java index b0d6cc824..b1017e2d0 100644 --- a/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.java +++ b/src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.java @@ -90,7 +90,7 @@ public class NewObserverDialog extends AbstractDialog { private JLabel classNameErrorMessage;// NOPMD private JLabel directoryStructureLabel;// NOPMD private JLabel directoryStructureErrorMessage;// NOPMD - private JLabel evenNamesLabel;// NOPMD + private JLabel eventNamesLabel;// NOPMD private JLabel targetAreaLabel;// NOPMD /** @@ -186,7 +186,7 @@ public String getClassName() { return className.getText().trim(); } - public String getEvenName() { + public String getEventName() { return eventName.getSelectedItem().toString(); } @@ -213,7 +213,7 @@ protected void onOK() { modulePackage, moduleName, getObserverClassFqn(), - getEvenName(), + getEventName(), observerDirectory, ModuleObserverFile.resolveClassNameFromInput(getClassName()) ), @@ -227,7 +227,7 @@ protected void onOK() { Package.fqnSeparator, Package.vendorModuleNameSeparator ), - getEvenName(), + getEventName(), getObserverName(), getObserverClassFqn().concat(Package.fqnSeparator).concat( ModuleObserverFile.resolveClassNameFromInput(getClassName())