|
15 | 15 | import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.AlphanumericRule; |
16 | 16 | import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.NotEmptyRule; |
17 | 17 | import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.PhpClassRule; |
18 | | -import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.PhpNamespaceNameRule; |
19 | 18 | import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.StartWithNumberOrCapitalLetterRule; |
20 | 19 | import com.magento.idea.magento2plugin.actions.generation.generator.ModuleControllerClassGenerator; |
21 | 20 | import com.magento.idea.magento2plugin.magento.files.ControllerBackendPhp; |
@@ -63,16 +62,12 @@ public class NewControllerDialog extends AbstractDialog { |
63 | 62 |
|
64 | 63 | @FieldValidation(rule = RuleRegistry.NOT_EMPTY, |
65 | 64 | message = {NotEmptyRule.MESSAGE, CONTROLLER_NAME}) |
66 | | - @FieldValidation(rule = RuleRegistry.PHP_NAMESPACE_NAME, |
67 | | - message = {PhpNamespaceNameRule.MESSAGE, CONTROLLER_NAME}) |
| 65 | + @FieldValidation(rule = RuleRegistry.PHP_CLASS, |
| 66 | + message = {PhpClassRule.MESSAGE, ACTION_NAME}) |
68 | 67 | private JTextField controllerName; |
69 | 68 |
|
70 | 69 | @FieldValidation(rule = RuleRegistry.NOT_EMPTY, |
71 | 70 | message = {NotEmptyRule.MESSAGE, ACTION_NAME}) |
72 | | - @FieldValidation(rule = RuleRegistry.START_WITH_NUMBER_OR_CAPITAL_LETTER, |
73 | | - message = {StartWithNumberOrCapitalLetterRule.MESSAGE, ACTION_NAME}) |
74 | | - @FieldValidation(rule = RuleRegistry.ALPHANUMERIC, |
75 | | - message = {AlphanumericRule.MESSAGE, ACTION_NAME}) |
76 | 71 | @FieldValidation(rule = RuleRegistry.PHP_CLASS, |
77 | 72 | message = {PhpClassRule.MESSAGE, ACTION_NAME}) |
78 | 73 | private JTextField actionName; |
|
0 commit comments