Skip to content

Commit

Permalink
Merge pull request #2087 from piotrkwiecinski/fix-observer-typo
Browse files Browse the repository at this point in the history
Fix NewObserverDialog form typo
  • Loading branch information
VitaliyBoyko authored Jul 11, 2024
2 parents ad86638 + c872546 commit 424c0c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
<text value="Directory Path"/>
</properties>
</component>
<component id="58ad9" class="javax.swing.JLabel" binding="evenNamesLabel">
<component id="58ad9" class="javax.swing.JLabel" binding="eventNamesLabel">
<constraints>
<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"/>
</constraints>
<properties>
<text value="Observer Even Name"/>
<text value="Observer Event Name"/>
</properties>
</component>
<component id="be834" class="javax.swing.JLabel" binding="directoryStructureErrorMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down Expand Up @@ -186,7 +186,7 @@ public String getClassName() {
return className.getText().trim();
}

public String getEvenName() {
public String getEventName() {
return eventName.getSelectedItem().toString();
}

Expand All @@ -213,7 +213,7 @@ protected void onOK() {
modulePackage,
moduleName,
getObserverClassFqn(),
getEvenName(),
getEventName(),
observerDirectory,
ModuleObserverFile.resolveClassNameFromInput(getClassName())
),
Expand All @@ -227,7 +227,7 @@ protected void onOK() {
Package.fqnSeparator,
Package.vendorModuleNameSeparator
),
getEvenName(),
getEventName(),
getObserverName(),
getObserverClassFqn().concat(Package.fqnSeparator).concat(
ModuleObserverFile.resolveClassNameFromInput(getClassName())
Expand Down

0 comments on commit 424c0c0

Please sign in to comment.