-
Notifications
You must be signed in to change notification settings - Fork 35
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
JBIDE-18413: Refreshing CheckboxTableControlBuilder choices when value choices change #108
Conversation
@fbricon can you review this PR? Thanks |
Iterable<Object> defaultValues = selectMany.getValue(); | ||
if (defaultValues != null) { | ||
for (Object object : defaultValues) { | ||
data.add(converter.convert(object)); |
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.
can the converter return null values?
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.
No, only if object is null. But nevertheless I'll add a check here
@fbricon I applied your suggested fixes. Please review this PR again |
Iterable<Object> valueChoices = selectMany.getValueChoices(); | ||
if (valueChoices == null) | ||
return; | ||
List<String> newItems = new ArrayList<String>(); |
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.
if you can, assign the expected size directly. But that's me nitpicking
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.
The expected size of what exactly?
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.
of newItems. Can we know the size of selectMany without iterating it?
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.
nope, it's an Iterable
+1 to apply |
Merged, thanks! |
No description provided.