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