-
Notifications
You must be signed in to change notification settings - Fork 105
Changed validator for OverrideInThemeDialog #326
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> allThemesList = ModuleIndex.getInstance(project).getEditableThemeNames(); | ||
if (!allThemesList.contains(theme)) { | ||
final String errorMessage = validatorBundle | ||
.message("validator.module.noSuchModule", theme); | ||
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 yet.
I noticed that wherever
The seemingly unnecessary validation (step 2) is done because the My suggestion:- I have added a commit to this PR (ref: 0f65e53) which changes the field to a This issue is present in multiple PRs of mine where the validation is done for a CC/ @VitaliyBoyko |
Hi @drpayyne Dropdown is editable for a filtering purpose. For themes, it is not necessary (I agree here), but for the modules list, it is required. |
Description
This PR changes the validator of
OverrideInThemeDialog
.Fixed Issues
Questions or comments
Contribution checklist