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-22592] always fire change for same properties list instance #1261
Conversation
if (value != null) { | ||
clone.setValue(value); | ||
p.setValue(value); |
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.
DONT clone the parameters, set the value to the existing parameter.
this.template = (ITemplate) source.getSource(); | ||
updateTemplateParameters(template); | ||
ITemplate newTemplate = (ITemplate) source.getSource(); | ||
if (!Objects.equals(newTemplate, this.template)) { |
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.
dont update template parameters if we already have the very same template already set
firePropertyChange(PROPERTY_PARAMETERS, oldParameters, this.parameters); | ||
|
||
// update selected parameter | ||
setSelectedParameter(getSelectedParameterOrDefault()); |
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.
update selected parameter after new parameters have been set.
+1 |
public void setParameters(Collection<IParameter> parameters) { | ||
List<IParameter> oldParameters = new ArrayList<>(this.parameters); | ||
if (parameters == null) { | ||
this.parameters.clear(); |
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.
May this.originalValueMap be cleared here, too?
No description provided.