Program: 58180
Project: 58180
Buggy source:
@Override public void handleSelectionUpdate(ISelectionDelta selectionDelta,boolean scrollToSelection,String info){
  if (selectionDelta.getIDType() == mappingDataDomain.getContentIDType()) {
    for (    SelectionDeltaItem item : selectionDelta.getAllItems()) {
      if (item.getSelectionType() == SelectionType.MOUSE_OVER) {
        iCurrentStorageIndex=item.getPrimaryID();
        break;
      }
    }
    setDisplayListDirty();
  }
 else   if (selectionDelta.getIDType().getIDCategory() == mappingDataDomain.getContentIDCategory()) {
    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 iViewID=iUniqueID;
      SelectedElementRep elementRep=new SelectedElementRep(mappingDataDomain.getContentIDType(),iViewID,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);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void handleSelectionUpdate(ISelectionDelta selectionDelta,boolean scrollToSelection,String info){
  if (selectionDelta.getIDType() == mappingDataDomain.getStorageIDType()) {
    for (    SelectionDeltaItem item : selectionDelta.getAllItems()) {
      if (item.getSelectionType() == SelectionType.MOUSE_OVER) {
        iCurrentStorageIndex=item.getPrimaryID();
        break;
      }
    }
    setDisplayListDirty();
  }
 else   if (selectionDelta.getIDType().getIDCategory() == mappingDataDomain.getContentIDCategory()) {
    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 iViewID=iUniqueID;
      SelectedElementRep elementRep=new SelectedElementRep(mappingDataDomain.getContentIDType(),iViewID,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);
      }
    }
  }
}