Program: 57920
Project: 57920
Buggy source:
@Override public void handleSelectionUpdate(ISelectionDelta selectionDelta,boolean scrollToSelection,String info){
  if (pathway == null)   return;
  if (selectionDelta.getIDType() == mappingDataDomain.getDimensionIDType()) {
    for (    SelectionDeltaItem item : selectionDelta.getAllItems()) {
      if (item.getSelectionType() == SelectionType.MOUSE_OVER) {
        iCurrentDimensionIndex=item.getPrimaryID();
        break;
      }
    }
    setDisplayListDirty();
  }
 else   if (selectionDelta.getIDType().getIDCategory() == mappingDataDomain.getRecordIDCategory()) {
    ISelectionDelta resolvedDelta=resolveExternalSelectionDelta(selectionDelta);
    selectionManager.setDelta(resolvedDelta);
    setDisplayListDirty();
    int iPathwayHeight=pathway.getHeight();
    for (    SelectionDeltaItem item : resolvedDelta) {
      if (item.getSelectionType() != SelectionType.MOUSE_OVER && item.getSelectionType() != SelectionType.SELECTION) {
        continue;
      }
      PathwayVertexGraphItemRep vertexRep=(PathwayVertexGraphItemRep)pathwayItemManager.getItem(item.getPrimaryID());
      int viewID=uniqueID;
      SelectedElementRep elementRep=new SelectedElementRep(mappingDataDomain.getRecordIDType(),viewID,vertexRep.getXOrigin() * PathwayRenderStyle.SCALING_FACTOR_X * vecScaling.x() + vecTranslation.x(),(iPathwayHeight - vertexRep.getYOrigin()) * PathwayRenderStyle.SCALING_FACTOR_Y * vecScaling.y() + vecTranslation.y(),0);
      for (      Integer iConnectionID : item.getConnectionIDs()) {
        connectedElementRepresentationManager.addSelection(iConnectionID,elementRep,item.getSelectionType());
      }
    }
  }
}

Fixed version (ground truth):
@Override public void handleSelectionUpdate(ISelectionDelta selectionDelta,boolean scrollToSelection,String info){
  if (pathway == null)   return;
  if (selectionDelta.getIDType() == mappingDataDomain.getDimensionIDType()) {
    for (    SelectionDeltaItem item : selectionDelta.getAllItems()) {
      if (item.getSelectionType() == SelectionType.MOUSE_OVER && !item.isRemove()) {
        iCurrentDimensionIndex=item.getPrimaryID();
        System.out.println(item);
        break;
      }
    }
    setDisplayListDirty();
  }
 else   if (selectionDelta.getIDType().getIDCategory() == mappingDataDomain.getRecordIDCategory()) {
    ISelectionDelta resolvedDelta=resolveExternalSelectionDelta(selectionDelta);
    selectionManager.setDelta(resolvedDelta);
    setDisplayListDirty();
    int iPathwayHeight=pathway.getHeight();
    for (    SelectionDeltaItem item : resolvedDelta) {
      if (item.getSelectionType() != SelectionType.MOUSE_OVER && item.getSelectionType() != SelectionType.SELECTION) {
        continue;
      }
      PathwayVertexGraphItemRep vertexRep=(PathwayVertexGraphItemRep)pathwayItemManager.getItem(item.getPrimaryID());
      int viewID=uniqueID;
      SelectedElementRep elementRep=new SelectedElementRep(mappingDataDomain.getRecordIDType(),viewID,vertexRep.getXOrigin() * PathwayRenderStyle.SCALING_FACTOR_X * vecScaling.x() + vecTranslation.x(),(iPathwayHeight - vertexRep.getYOrigin()) * PathwayRenderStyle.SCALING_FACTOR_Y * vecScaling.y() + vecTranslation.y(),0);
      for (      Integer iConnectionID : item.getConnectionIDs()) {
        connectedElementRepresentationManager.addSelection(iConnectionID,elementRep,item.getSelectionType());
      }
    }
  }
}