Program: 122885
Project: 122885
Buggy source:
public void notifyChanged(Notification notification){
  int type=notification.getEventType();
  int featureId=notification.getFeatureID(XmlmapPackage.class);
switch (type) {
case Notification.SET:
switch (featureId) {
case XmlmapPackage.VAR_NODE__EXPRESSION:
      ((VarNodeFigure)getFigure()).getExpression().setText(((VarNode)getModel()).getExpression());
    break;
case XmlmapPackage.VAR_NODE__NULLABLE:
  boolean newBoolean=notification.getNewBooleanValue();
ImageFigure checkImage=((VarNodeFigure)getFigure()).getVariable().getCheckImage();
if (newBoolean) {
checkImage.setImage(ImageProvider.getImage(EImage.CHECKED_ICON));
}
 else if (!newBoolean) {
checkImage.setImage(ImageProvider.getImage(EImage.UNCHECKED_ICON));
}
break;
case XmlmapPackage.VAR_NODE__NAME:
((VarNodeFigure)getFigure()).getVariable().getVariableLabel().setText(((VarNode)getModel()).getName());
break;
case XmlmapPackage.VAR_NODE__TYPE:
((VarNodeFigure)getFigure()).updateVarNodeType();
break;
default :
}
case Notification.ADD:
switch (featureId) {
case XmlmapPackage.VAR_NODE__INCOMING_CONNECTIONS:
refreshTargetConnections();
break;
case XmlmapPackage.VAR_NODE__OUTGOING_CONNECTIONS:
case XmlmapPackage.VAR_NODE__FILTER_OUT_GOING_CONNECTIONS:
refreshSourceConnections();
break;
}
case Notification.REMOVE:
case Notification.REMOVE_MANY:
switch (featureId) {
case XmlmapPackage.VAR_NODE__INCOMING_CONNECTIONS:
refreshTargetConnections();
break;
case XmlmapPackage.VAR_NODE__OUTGOING_CONNECTIONS:
case XmlmapPackage.VAR_NODE__FILTER_OUT_GOING_CONNECTIONS:
refreshSourceConnections();
break;
}
}
}

Fixed version (ground truth):
@Override public void notifyChanged(Notification notification){
  int type=notification.getEventType();
  int featureId=notification.getFeatureID(XmlmapPackage.class);
switch (type) {
case Notification.SET:
switch (featureId) {
case XmlmapPackage.VAR_NODE__EXPRESSION:
      ((VarNodeFigure)getFigure()).getExpression().setText(((VarNode)getModel()).getExpression());
    break;
case XmlmapPackage.VAR_NODE__NULLABLE:
  boolean newBoolean=notification.getNewBooleanValue();
ImageFigure checkImage=((VarNodeFigure)getFigure()).getVariable().getCheckImage();
if (newBoolean) {
checkImage.setImage(ImageProvider.getImage(EImage.CHECKED_ICON));
}
 else if (!newBoolean) {
checkImage.setImage(ImageProvider.getImage(EImage.UNCHECKED_ICON));
}
break;
case XmlmapPackage.VAR_NODE__NAME:
((VarNodeFigure)getFigure()).getVariable().getVariableLabel().setText(((VarNode)getModel()).getName());
break;
case XmlmapPackage.VAR_NODE__TYPE:
((VarNodeFigure)getFigure()).updateVarNodeType();
break;
default :
}
case Notification.ADD:
switch (featureId) {
case XmlmapPackage.VAR_NODE__INCOMING_CONNECTIONS:
refreshTargetConnections();
break;
case XmlmapPackage.VAR_NODE__OUTGOING_CONNECTIONS:
case XmlmapPackage.VAR_NODE__FILTER_OUT_GOING_CONNECTIONS:
refreshSourceConnections();
break;
}
case Notification.REMOVE:
case Notification.REMOVE_MANY:
switch (featureId) {
case XmlmapPackage.VAR_NODE__INCOMING_CONNECTIONS:
refreshTargetConnections();
break;
case XmlmapPackage.VAR_NODE__OUTGOING_CONNECTIONS:
case XmlmapPackage.VAR_NODE__FILTER_OUT_GOING_CONNECTIONS:
refreshSourceConnections();
break;
}
}
}