Program: 134468
Project: 134468
Buggy source:
protected void createImportButtonToolbar(Section section){
  ToolBarManager toolBarManager=new ToolBarManager(SWT.FLAT);
  ToolBar toolbar=toolBarManager.createControl(section);
  toolbar.setCursor(Display.getDefault().getSystemCursor(SWT.CURSOR_HAND));
  Action addButton=new Action("String_Node_Str",IAction.AS_CHECK_BOX){
    @Override public void run(){
      super.run();
      Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
      AddImportDialog dialog=new AddImportDialog(shell,module,file);
      if (0 <= dialog.open()) {
        refreshImportTable();
      }
      setChecked(false);
    }
  }
;
  addButton.setImageDescriptor(GraphitiUi.getImageService().getImageDescriptorForId(YangDiagramImageProvider.DIAGRAM_TYPE_PROVIDER_ID,YangDiagramImageProvider.IMG_ADD_TOOL_PROPOSAL));
  addButton.setEnabled(true);
  toolBarManager.add(addButton);
  Action deleteButton=new Action("String_Node_Str",IAction.AS_CHECK_BOX){
    @SuppressWarnings("String_Node_Str") @Override public void run(){
      super.run();
      if (importTable.getSelection() instanceof IStructuredSelection) {
        Iterator<Object> iter=((IStructuredSelection)importTable.getSelection()).iterator();
        while (iter.hasNext()) {
          module.getChildren().remove(iter.next());
        }
        refreshImportTable();
        setChecked(false);
      }
    }
  }
;
  deleteButton.setImageDescriptor(GraphitiUi.getImageService().getImageDescriptorForId(YangDiagramImageProvider.DIAGRAM_TYPE_PROVIDER_ID,YangDiagramImageProvider.IMG_DELETE_TOOL_PROPOSAL));
  deleteButton.setEnabled(true);
  toolBarManager.add(deleteButton);
  toolBarManager.update(true);
  section.setTextClient(toolbar);
}

Fixed version (ground truth):
protected void createImportButtonToolbar(Section section){
  ToolBarManager toolBarManager=new ToolBarManager(SWT.FLAT);
  ToolBar toolbar=toolBarManager.createControl(section);
  toolbar.setCursor(Display.getDefault().getSystemCursor(SWT.CURSOR_HAND));
  Action addButton=new Action("String_Node_Str",IAction.AS_CHECK_BOX){
    @Override public void run(){
      super.run();
      Shell shell=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
      AddImportDialog dialog=new AddImportDialog(shell,module,file);
      if (0 <= dialog.open()) {
        YangModelUtil.add(module,dialog.getResultImport(),module.getChildren().size());
        refreshImportTable();
      }
      setChecked(false);
    }
  }
;
  addButton.setImageDescriptor(GraphitiUi.getImageService().getImageDescriptorForId(YangDiagramImageProvider.DIAGRAM_TYPE_PROVIDER_ID,YangDiagramImageProvider.IMG_ADD_TOOL_PROPOSAL));
  addButton.setEnabled(true);
  toolBarManager.add(addButton);
  Action deleteButton=new Action("String_Node_Str",IAction.AS_CHECK_BOX){
    @SuppressWarnings("String_Node_Str") @Override public void run(){
      super.run();
      if (importTable.getSelection() instanceof IStructuredSelection) {
        Iterator<Object> iter=((IStructuredSelection)importTable.getSelection()).iterator();
        while (iter.hasNext()) {
          module.getChildren().remove(iter.next());
        }
        refreshImportTable();
        setChecked(false);
      }
    }
  }
;
  deleteButton.setImageDescriptor(GraphitiUi.getImageService().getImageDescriptorForId(YangDiagramImageProvider.DIAGRAM_TYPE_PROVIDER_ID,YangDiagramImageProvider.IMG_DELETE_TOOL_PROPOSAL));
  deleteButton.setEnabled(true);
  toolBarManager.add(deleteButton);
  toolBarManager.update(true);
  section.setTextClient(toolbar);
}