Program: 70481
Project: 70481
Buggy source:
/** 
 * Creates reusable actions for all BIRT graphical editors. (non-Javadoc)
 * @see org.eclipse.gef.ui.parts.GraphicalEditor#createActions()
 */
protected void createActions(){
  super.createActions();
  IAction action=new MergeAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new SplitAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CreateChartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteRowAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteColumnAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteTableGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertRowAboveAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertRowBelowAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertTableGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertColumnRightAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertColumnLeftAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CutPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CopyPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new PastePartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertListGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteListGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new AddStyleAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ImportCSSStylePartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new AddGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertGroupMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ChangeDataColumnPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CreatePlaceHolderPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new RevertToReportItemPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new RevertToTemplatePartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ExportElementToLibraryPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ApplyStyleMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ApplyThemeMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new EditStyleMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteStyleMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new EditGroupMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new EditBindingAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_TEXT_ID,ReportDesignConstants.TEXT_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_LABEL_ID,ReportDesignConstants.LABEL_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_DATA_ID,ReportDesignConstants.DATA_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_GRID_ID,ReportDesignConstants.GRID_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_LIST_ID,ReportDesignConstants.LIST_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_TABLE_ID,ReportDesignConstants.TABLE_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_IMAGE_ID,ReportDesignConstants.IMAGE_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_DYNAMIC_TEXT_ID,ReportDesignConstants.TEXT_DATA_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new InsertAggregationAction(this);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new NewParameterAction(NewParameterAction.INSERT_SCALAR_PARAMETER,ReportDesignConstants.SCALAR_PARAMETER_ELEMENT);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new NewParameterAction(NewParameterAction.INSERT_PARAMETER_GROUP,ReportDesignConstants.PARAMETER_GROUP_ELEMENT);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new NewParameterAction(NewParameterAction.INSERT_CASCADING_PARAMETER_GROUP,ReportDesignConstants.CASCADING_PARAMETER_GROUP_ELEMENT);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertExpressionMenuAction(this);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new NewDataSourceAction();
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new NewDataSetAction();
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new NewJointDataSetAction();
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DirectEditAction((IWorkbenchPart)this);
  ((DirectEditAction)action).setDirectEditRequest(new Request(RequestConstants.REQ_OPEN));
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new IncludeHeaderAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new IncludeDetailAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new IncludeFooterAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new UseLibraryPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new SelectRowAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new SelectColumnAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CopyCellContentsContextAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CopyFormatAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new PasteFormatAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ResetImageSizeAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  registerInsertExtElementActions();
}

Fixed version (ground truth):
/** 
 * Creates reusable actions for all BIRT graphical editors. (non-Javadoc)
 * @see org.eclipse.gef.ui.parts.GraphicalEditor#createActions()
 */
protected void createActions(){
  super.createActions();
  IAction action=new MergeAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new SplitAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CreateChartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteRowAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteColumnAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteTableGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertRowAboveAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertRowBelowAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertTableGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertColumnRightAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertColumnLeftAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CutPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CopyPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new PastePartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertListGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteListGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new AddStyleAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ImportCSSStylePartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new AddGroupAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new InsertGroupMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ChangeDataColumnPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CreatePlaceHolderPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new RevertToReportItemPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new RevertToTemplatePartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ExportElementToLibraryPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ApplyStyleMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ApplyThemeMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new EditStyleMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new DeleteStyleMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new EditGroupMenuAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new EditBindingAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_TEXT_ID,ReportDesignConstants.TEXT_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_LABEL_ID,ReportDesignConstants.LABEL_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_DATA_ID,ReportDesignConstants.DATA_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_GRID_ID,ReportDesignConstants.GRID_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_LIST_ID,ReportDesignConstants.LIST_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_TABLE_ID,ReportDesignConstants.TABLE_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_IMAGE_ID,ReportDesignConstants.IMAGE_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new GeneralInsertMenuAction(this,GeneralInsertMenuAction.INSERT_DYNAMIC_TEXT_ID,ReportDesignConstants.TEXT_DATA_ITEM);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new InsertAggregationAction(this);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new InsertExpressionMenuAction(this);
  getSelectionActions().add(action.getId());
  addEditPartAction((SelectionAction)action);
  action=new DirectEditAction((IWorkbenchPart)this);
  ((DirectEditAction)action).setDirectEditRequest(new Request(RequestConstants.REQ_OPEN));
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new IncludeHeaderAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new IncludeDetailAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new IncludeFooterAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new UseLibraryPartAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new SelectRowAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new SelectColumnAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CopyCellContentsContextAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new CopyFormatAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new PasteFormatAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  action=new ResetImageSizeAction(this);
  getActionRegistry().registerAction(action);
  getSelectionActions().add(action.getId());
  registerInsertExtElementActions();
}