17
17
import com .magento .idea .magento2plugin .indexes .ModuleIndex ;
18
18
import com .magento .idea .magento2plugin .magento .packages .Package ;
19
19
import com .magento .idea .magento2plugin .ui .FilteredComboBox ;
20
- import com .magento .idea .magento2plugin .validators .ValidatorBundle ;
20
+ import com .magento .idea .magento2plugin .bundles .ValidatorBundle ;
21
21
import org .jetbrains .annotations .NotNull ;
22
22
import javax .swing .*;
23
23
import java .awt .event .*;
@@ -43,11 +43,13 @@ public class OverrideClassByAPreferenceDialog extends AbstractDialog {
43
43
private JCheckBox inheritClass ;
44
44
private JLabel inheritClassLabel ;
45
45
private JLabel preferenceDirectoryLabel ;
46
+ private ValidatorBundle validatorBundle ;
46
47
47
48
public OverrideClassByAPreferenceDialog (@ NotNull Project project , PhpClass targetClass ) {
48
49
this .project = project ;
49
50
this .targetClass = targetClass ;
50
51
this .validator = OverrideClassByAPreferenceDialogValidator .getInstance (this );
52
+ this .validatorBundle = new ValidatorBundle ();
51
53
52
54
setContentPane (contentPane );
53
55
setModal (true );
@@ -124,7 +126,7 @@ private void onOK() {
124
126
getPreferenceArea ()
125
127
), project ).generate (OverrideClassByAPreferenceAction .ACTION_NAME );
126
128
if (diXml == null ) {
127
- String errorMessage = ValidatorBundle .message ("validator.class.alreadyDeclared" , "Preference" );
129
+ String errorMessage = validatorBundle .message ("validator.class.alreadyDeclared" , "Preference" );
128
130
JOptionPane .showMessageDialog (null , errorMessage , "Error" , JOptionPane .ERROR_MESSAGE );
129
131
130
132
return ;
0 commit comments