1717import com .magento .idea .magento2plugin .indexes .ModuleIndex ;
1818import com .magento .idea .magento2plugin .magento .packages .Package ;
1919import com .magento .idea .magento2plugin .ui .FilteredComboBox ;
20- import com .magento .idea .magento2plugin .validators .ValidatorBundle ;
20+ import com .magento .idea .magento2plugin .bundles .ValidatorBundle ;
2121import org .jetbrains .annotations .NotNull ;
2222import javax .swing .*;
2323import 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