Skip to content

Commit d34192e

Browse files
committed
Fixing package path
1 parent 0d7bdc2 commit d34192e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import com.magento.idea.magento2plugin.indexes.ModuleIndex;
1818
import com.magento.idea.magento2plugin.magento.packages.Package;
1919
import com.magento.idea.magento2plugin.ui.FilteredComboBox;
20-
import com.magento.idea.magento2plugin.validators.ValidatorBundle;
20+
import com.magento.idea.magento2plugin.bundles.ValidatorBundle;
2121
import org.jetbrains.annotations.NotNull;
2222
import javax.swing.*;
2323
import java.awt.event.*;
@@ -43,11 +43,13 @@ public class OverrideClassByAPreferenceDialog extends AbstractDialog {
4343
private JCheckBox inheritClass;
4444
private JLabel inheritClassLabel;
4545
private JLabel preferenceDirectoryLabel;
46+
private ValidatorBundle validatorBundle;
4647

4748
public OverrideClassByAPreferenceDialog(@NotNull Project project, PhpClass targetClass) {
4849
this.project = project;
4950
this.targetClass = targetClass;
5051
this.validator = OverrideClassByAPreferenceDialogValidator.getInstance(this);
52+
this.validatorBundle = new ValidatorBundle();
5153

5254
setContentPane(contentPane);
5355
setModal(true);
@@ -124,7 +126,7 @@ private void onOK() {
124126
getPreferenceArea()
125127
), project).generate(OverrideClassByAPreferenceAction.ACTION_NAME);
126128
if (diXml == null) {
127-
String errorMessage = ValidatorBundle.message("validator.class.alreadyDeclared", "Preference");
129+
String errorMessage = validatorBundle.message("validator.class.alreadyDeclared", "Preference");
128130
JOptionPane.showMessageDialog(null, errorMessage, "Error", JOptionPane.ERROR_MESSAGE);
129131

130132
return;

0 commit comments

Comments
 (0)