Skip to content

Commit c872546

Browse files
YevhenZvierievpiotrkwiecinski
authored andcommitted
Fix NewObserverDialog form typo
1 parent ad86638 commit c872546

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewObserverDialog.form

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171
<text value="Directory Path"/>
7272
</properties>
7373
</component>
74-
<component id="58ad9" class="javax.swing.JLabel" binding="evenNamesLabel">
74+
<component id="58ad9" class="javax.swing.JLabel" binding="eventNamesLabel">
7575
<constraints>
7676
<grid row="7" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
7777
</constraints>
7878
<properties>
79-
<text value="Observer Even Name"/>
79+
<text value="Observer Event Name"/>
8080
</properties>
8181
</component>
8282
<component id="be834" class="javax.swing.JLabel" binding="directoryStructureErrorMessage">

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class NewObserverDialog extends AbstractDialog {
9090
private JLabel classNameErrorMessage;// NOPMD
9191
private JLabel directoryStructureLabel;// NOPMD
9292
private JLabel directoryStructureErrorMessage;// NOPMD
93-
private JLabel evenNamesLabel;// NOPMD
93+
private JLabel eventNamesLabel;// NOPMD
9494
private JLabel targetAreaLabel;// NOPMD
9595

9696
/**
@@ -186,7 +186,7 @@ public String getClassName() {
186186
return className.getText().trim();
187187
}
188188

189-
public String getEvenName() {
189+
public String getEventName() {
190190
return eventName.getSelectedItem().toString();
191191
}
192192

@@ -213,7 +213,7 @@ protected void onOK() {
213213
modulePackage,
214214
moduleName,
215215
getObserverClassFqn(),
216-
getEvenName(),
216+
getEventName(),
217217
observerDirectory,
218218
ModuleObserverFile.resolveClassNameFromInput(getClassName())
219219
),
@@ -227,7 +227,7 @@ protected void onOK() {
227227
Package.fqnSeparator,
228228
Package.vendorModuleNameSeparator
229229
),
230-
getEvenName(),
230+
getEventName(),
231231
getObserverName(),
232232
getObserverClassFqn().concat(Package.fqnSeparator).concat(
233233
ModuleObserverFile.resolveClassNameFromInput(getClassName())

0 commit comments

Comments
 (0)