-
Notifications
You must be signed in to change notification settings - Fork 105
Changed validator for CreateAPluginDialog #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
final List<String> allModulesList = ModuleIndex | ||
.getInstance(project).getEditableModuleNames(); | ||
if (!allModulesList.contains(pluginModule)) { | ||
final String errorMessage = validatorBundle.message( | ||
"validator.module.noSuchModule", | ||
pluginModule | ||
); | ||
JOptionPane.showMessageDialog( | ||
null, | ||
errorMessage, | ||
errorTitle, | ||
JOptionPane.ERROR_MESSAGE | ||
); | ||
|
||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't implemented and will be done in a separate PR as per @VitaliyBoyko.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please create an Issue and reference it to this PR. TY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @VitaliyBoyko, I've created an issue for the above: #332. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @VitaliyBoyko, I've closed the above issue and suggested a better aproach in this comment: #326 (comment).
Please update the PR. Thanks! |
Hi @VitaliyBoyko, I've fixed the merge conflicts. Also, please check #324 (comment). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA passed ✅
Description
Changes the validator for CreateAPluginDialog from a dedicated class to
@FieldValidation
annotationFixed Issues
Additional changes
Name
->Plugin Name
Contribution checklist