Program: 65656
Project: 65656
Buggy source:
/** 
 * Update UI values according to specified trigger model values.
 * @param trigger
 */
private void updateUI(Trigger trigger){
  if (trigger == null) {
    initUI();
    return;
  }
switch (getTriggerIndex()) {
case INDEX_1_URL_REDIRECT:
    this.slValues.topControl=multiHyperlinksComposite;
  ActionValue value=trigger.getAction().getValue();
if (value instanceof MultiURLValues) {
  MultiURLValues urlValues=(MultiURLValues)trigger.getAction().getValue();
  multiHyperlinksComposite.populateUIValues(urlValues);
}
 else if (value instanceof URLValue) {
  ChartAdapter.beginIgnoreNotifications();
  MultiURLValues muv=MultiURLValuesImpl.create();
  URLValue uv=(URLValue)value;
  org.eclipse.birt.chart.model.component.Label l=LabelImpl.create();
  l.setCaption(TextImpl.create(Messages.getString("String_Node_Str")));
  uv.setLabel(l);
  muv.getURLValues().add(uv);
  muv.setTooltip(uv.getTooltip());
  muv.eAdapters().addAll(value.eAdapters());
  trigger.getAction().setValue(muv);
  multiHyperlinksComposite.populateUIValues(muv);
  ChartAdapter.endIgnoreNotifications();
}
break;
case INDEX_2_TOOLTIP:
this.slValues.topControl=cmpTooltip;
TooltipValue tooltipValue=(TooltipValue)trigger.getAction().getValue();
btnTooltipExpBuilder.setExpression(tooltipValue.getText());
break;
case INDEX_3_TOOGLE_VISABILITY:
this.slValues.topControl=cmpVisiblity;
break;
case INDEX_4_SCRIPT:
this.slValues.topControl=cmpScript;
ScriptValue scriptValue=(ScriptValue)trigger.getAction().getValue();
btnScriptExpBuilder.setExpression(scriptValue.getScript());
break;
case INDEX_5_HIGHLIGHT:
this.slValues.topControl=cmpHighlight;
break;
case INDEX_6_CALLBACK:
this.slValues.topControl=cmpCallback;
break;
case INDEX_7_TOOGLE_DATAPOINT:
this.slValues.topControl=cmpDPVisibility;
break;
default :
this.slValues.topControl=cmpDefault;
break;
}
grpValue.layout();
}

Fixed version (ground truth):
/** 
 * Update UI values according to specified trigger model values.
 * @param trigger
 */
private void updateUI(Trigger trigger){
  if (trigger == null) {
    initUI();
    return;
  }
switch (getTriggerIndex()) {
case INDEX_1_URL_REDIRECT:
    this.slValues.topControl=multiHyperlinksComposite;
  ActionValue value=trigger.getAction().getValue();
if (value instanceof MultiURLValues) {
  MultiURLValues urlValues=(MultiURLValues)trigger.getAction().getValue();
  multiHyperlinksComposite.populateUIValues(urlValues);
}
 else if (value instanceof URLValue) {
  ChartAdapter.beginIgnoreNotifications();
  MultiURLValues muv=MultiURLValuesImpl.create();
  URLValue uv=(URLValue)value;
  org.eclipse.birt.chart.model.component.Label l=LabelImpl.create();
  l.setCaption(TextImpl.create(Messages.getString("String_Node_Str")));
  uv.setLabel(l);
  muv.getURLValues().add(uv);
  muv.setTooltip(uv.getTooltip());
  muv.eAdapters().addAll(value.eAdapters());
  trigger.getAction().setValue(muv);
  multiHyperlinksComposite.populateUIValues(muv);
  ChartAdapter.endIgnoreNotifications();
}
 else {
  ChartAdapter.beginIgnoreNotifications();
  MultiURLValues urlValues=MultiURLValuesImpl.create();
  trigger.getAction().setValue(urlValues);
  urlValues.eAdapters().addAll(trigger.eAdapters());
  multiHyperlinksComposite.populateUIValues(urlValues);
  ChartAdapter.endIgnoreNotifications();
}
break;
case INDEX_2_TOOLTIP:
this.slValues.topControl=cmpTooltip;
TooltipValue tooltipValue=(TooltipValue)trigger.getAction().getValue();
btnTooltipExpBuilder.setExpression(tooltipValue.getText());
break;
case INDEX_3_TOOGLE_VISABILITY:
this.slValues.topControl=cmpVisiblity;
break;
case INDEX_4_SCRIPT:
this.slValues.topControl=cmpScript;
ScriptValue scriptValue=(ScriptValue)trigger.getAction().getValue();
btnScriptExpBuilder.setExpression(scriptValue.getScript());
break;
case INDEX_5_HIGHLIGHT:
this.slValues.topControl=cmpHighlight;
break;
case INDEX_6_CALLBACK:
this.slValues.topControl=cmpCallback;
break;
case INDEX_7_TOOGLE_DATAPOINT:
this.slValues.topControl=cmpDPVisibility;
break;
default :
this.slValues.topControl=cmpDefault;
break;
}
grpValue.layout();
}