Skip to content

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

Merged
merged 8 commits into from
Oct 23, 2020

Conversation

drpayyne
Copy link
Contributor

@drpayyne drpayyne commented Oct 21, 2020

Description

Changes the validator for CreateAPluginDialog from a dedicated class to @FieldValidation annotation

Fixed Issues

  1. Change validation for the new plugin dialog window #293: Change validation for the new plugin dialog window

Additional changes

  • Fixed grammar of error messages
  • Changed label of field for plugin name: Name -> Plugin Name

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Comment on lines -240 to -255
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;
}
Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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).

@VitaliyBoyko
Copy link
Contributor

Please update the PR. Thanks!

@drpayyne
Copy link
Contributor Author

Hi @VitaliyBoyko, I've fixed the merge conflicts. Also, please check #324 (comment).

Copy link
Contributor

@VitaliyBoyko VitaliyBoyko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA passed ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants