Program: 70483
Project: 70483
Buggy source:
/** 
 * Handles all global actions
 */
private void handleGlobalAction(){
  for (int i=0; i < GlobalActionFactory.GLOBAL_SELECTION_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_SELECTION_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  for (int i=0; i < GlobalActionFactory.GLOBAL_INSERT_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_INSERT_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  for (int i=0; i < GlobalActionFactory.GLOBAL_ELEMENT_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_ELEMENT_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  List list=ExtensionPointManager.getInstance().getExtendedElementPoints();
  for (Iterator iter=list.iterator(); iter.hasNext(); ) {
    ExtendedElementUIPoint point=(ExtendedElementUIPoint)iter.next();
    String id=point.getExtensionName();
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  PaletteEntryExtension[] entries=EditpartExtensionManager.getPaletteEntries();
  for (int i=0; i < entries.length; i++) {
    getSite().getActionBars().setGlobalActionHandler(entries[i].getItemName(),GlobalActionFactory.createSelectionAction(entries[i].getItemName(),this));
  }
  getSite().getActionBars().setGlobalActionHandler(ImportLibraryAction.ID,new RetargetAction(ImportLibraryAction.ID,ImportLibraryAction.ACTION_TEXT));
  for (int i=0; i < GlobalActionFactory.GLOBAL_STACK_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_STACK_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createStackAction(id,getRoot().getCommandStack()));
  }
  for (int i=0; i < GlobalActionFactory.GLOBAL_DATA_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_DATA_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  for (int i=0; i < GlobalActionFactory.GLOBAL_PARAMETER_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_PARAMETER_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  getSite().getActionBars().updateActionBars();
}

Fixed version (ground truth):
/** 
 * Handles all global actions
 */
private void handleGlobalAction(){
  for (int i=0; i < GlobalActionFactory.GLOBAL_SELECTION_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_SELECTION_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  for (int i=0; i < GlobalActionFactory.GLOBAL_INSERT_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_INSERT_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  for (int i=0; i < GlobalActionFactory.GLOBAL_ELEMENT_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_ELEMENT_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  List list=ExtensionPointManager.getInstance().getExtendedElementPoints();
  for (Iterator iter=list.iterator(); iter.hasNext(); ) {
    ExtendedElementUIPoint point=(ExtendedElementUIPoint)iter.next();
    String id=point.getExtensionName();
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createSelectionAction(id,this));
  }
  PaletteEntryExtension[] entries=EditpartExtensionManager.getPaletteEntries();
  for (int i=0; i < entries.length; i++) {
    getSite().getActionBars().setGlobalActionHandler(entries[i].getItemName(),GlobalActionFactory.createSelectionAction(entries[i].getItemName(),this));
  }
  getSite().getActionBars().setGlobalActionHandler(ImportLibraryAction.ID,new RetargetAction(ImportLibraryAction.ID,ImportLibraryAction.ACTION_TEXT));
  for (int i=0; i < GlobalActionFactory.GLOBAL_STACK_ACTIONS.length; i++) {
    String id=GlobalActionFactory.GLOBAL_STACK_ACTIONS[i];
    getSite().getActionBars().setGlobalActionHandler(id,GlobalActionFactory.createStackAction(id,getRoot().getCommandStack()));
  }
  getSite().getActionBars().updateActionBars();
}