nus-yam/ex-repair huggingface dataset:
Program: 95405
Project: 95405
Buggy source:
/** 
 * Updates the binding for the threshold
 * @param bindingContext the binding context
 * @param masterObservable the model observable
 */
private void updateThresholdBind(final DataBindingContext bindingContext,IObservableValue masterObservable){
  IObservableValue uiElement;
  IObservableValue modelElement;
  String boundProperty=IObjectMappingProfilePO.PROP_THRESHOLD;
  uiElement=WidgetProperties.selection().observe(m_threshold);
  modelElement=BeanProperties.value(boundProperty,double.class).observe(masterObservable);
  removeBinding(uiElement,masterObservable);
  bindingContext.bindValue(uiElement,modelElement,new UpdateValueStrategy().setConverter(m_sliderToModelConverter),new UpdateValueStrategy().setConverter(m_modelToSliderConverter));
  uiElement=WidgetProperties.text().observe(m_thresholdText);
  removeBinding(uiElement,masterObservable);
  bindingContext.bindValue(uiElement,modelElement,new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER),new UpdateValueStrategy().setConverter(m_modelToLabelConverter));
}

Fixed version (ground truth):
/** 
 * Updates the binding for the threshold
 * @param bindingContext the binding context
 * @param masterObservable the model observable
 */
private void updateThresholdBind(final DataBindingContext bindingContext,IObservableValue masterObservable){
  IObservableValue uiElement;
  IObservableValue modelElement;
  String boundProperty=IObjectMappingProfilePO.PROP_THRESHOLD;
  uiElement=WidgetProperties.selection().observe(m_threshold);
  modelElement=BeanProperties.value(boundProperty,double.class).observeDetail(masterObservable);
  removeBinding(uiElement,masterObservable);
  bindingContext.bindValue(uiElement,modelElement,new UpdateValueStrategy().setConverter(m_sliderToModelConverter),new UpdateValueStrategy().setConverter(m_modelToSliderConverter));
  uiElement=WidgetProperties.text().observe(m_thresholdText);
  removeBinding(uiElement,masterObservable);
  bindingContext.bindValue(uiElement,modelElement,new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER),new UpdateValueStrategy().setConverter(m_modelToLabelConverter));
}
Program: 95406
Project: 95406
Buggy source:
public Rectangle run() throws StepExecutionException {
  TableItem ti=m_table.getItem(row);
  int column=(m_table.getColumnCount() > 0 || col > 0) ? col : 0;
  org.eclipse.swt.graphics.Rectangle r=ti.getBounds(column);
  if (!restr) {
    return SwtPointUtil.toAwtRectangle(r);
  }
  String text=CAPUtil.getWidgetText(ti,SwtToolkitConstants.WIDGET_TEXT_KEY_PREFIX + column,ti.getText(column));
  Image image=ti.getImage(column);
  if (text != null && text.length() != 0) {
    GC gc=new GC(m_table);
    int charWidth=0;
    try {
      FontMetrics fm=gc.getFontMetrics();
      charWidth=fm.getAverageCharWidth();
    }
  finally {
      gc.dispose();
    }
    r.width=text.length() * charWidth;
    if (image != null) {
      r.width+=image.getBounds().width;
    }
  }
 else   if (image != null) {
    r.width=image.getBounds().width;
  }
  if (column > 0) {
    TableColumn tc=m_table.getColumn(column);
    int alignment=tc.getAlignment();
    if (alignment == SWT.CENTER) {
      r.x+=((double)tc.getWidth() / 2) - ((double)r.width / 2);
    }
    if (alignment == SWT.RIGHT) {
      r.x+=tc.getWidth() - r.width;
    }
  }
  return new Rectangle(r.x,r.y,r.width,r.height);
}

Fixed version (ground truth):
public Rectangle run() throws StepExecutionException {
  TableItem ti=m_table.getItem(row);
  int column=(m_table.getColumnCount() > 0 || col > 0) ? col : 0;
  org.eclipse.swt.graphics.Rectangle cellbound=ti.getBounds(column);
  if (!restr) {
    return SwtPointUtil.toAwtRectangle(cellbound);
  }
  org.eclipse.swt.graphics.Rectangle calculatedBounds=new org.eclipse.swt.graphics.Rectangle(cellbound.x,cellbound.y,cellbound.width,cellbound.height);
  String text=CAPUtil.getWidgetText(ti,SwtToolkitConstants.WIDGET_TEXT_KEY_PREFIX + column,ti.getText(column));
  Image image=ti.getImage(column);
  if (text != null && text.length() != 0) {
    GC gc=new GC(m_table);
    int charWidth=0;
    try {
      FontMetrics fm=gc.getFontMetrics();
      charWidth=fm.getAverageCharWidth();
    }
  finally {
      gc.dispose();
    }
    calculatedBounds.width=text.length() * charWidth;
    if (image != null) {
      calculatedBounds.width+=image.getBounds().width;
    }
  }
 else   if (image != null) {
    calculatedBounds.width=image.getBounds().width;
  }
  if (column > 0) {
    TableColumn tc=m_table.getColumn(column);
    int alignment=tc.getAlignment();
    if (alignment == SWT.CENTER) {
      calculatedBounds.x+=((double)tc.getWidth() / 2) - ((double)calculatedBounds.width / 2);
    }
    if (alignment == SWT.RIGHT) {
      calculatedBounds.x+=tc.getWidth() - calculatedBounds.width;
    }
  }
  return SwtPointUtil.toAwtRectangle(cellbound.intersection(calculatedBounds));
}
Program: 95408
Project: 95408
Buggy source:
/** 
 * Replaces the given text in the given cell coordinates
 * @param text the text to replace
 * @param row The row of the cell.
 * @param rowOperator The row operator
 * @param col The column of the cell.
 * @param colOperator The column operator
 */
public void rcReplaceText(String text,String row,String rowOperator,String col,String colOperator){
  if (getTableAdapter().getRowFromString(row,rowOperator) == -1) {
    throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.UNSUPPORTED_HEADER_ACTION));
  }
  selectCell(row,rowOperator,col,colOperator,ClickOptions.create().setClickCount(1),ValueSets.BinaryChoice.no.rcValue());
  inputText(text,true);
}

Fixed version (ground truth):
/** 
 * Replaces the given text in the given cell coordinates
 * @param text the text to replace
 * @param row The row of the cell.
 * @param rowOperator The row operator
 * @param col The column of the cell.
 * @param colOperator The column operator
 */
public void rcReplaceText(String text,String row,String rowOperator,String col,String colOperator){
  if (getTableAdapter().getRowFromString(row,rowOperator) == -1) {
    throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.UNSUPPORTED_HEADER_ACTION));
  }
  selectCell(row,rowOperator,col,colOperator,ClickOptions.create().setClickCount(1),ValueSets.BinaryChoice.no.rcValue());
  inputText(text,true,getCellAtMousePosition());
}
Program: 95409
Project: 95409
Buggy source:
/** 
 * inputs/replaces the given text
 * @param text the text to input
 * @param replace whether to replace or not
 * @throws StepExecutionException If there is no selected cell,or if the cell is not editable, or if the table cell editor permits the text to be written.
 */
private void inputText(final String text,boolean replace) throws StepExecutionException {
  ITableComponent adapter=getTableAdapter();
  final Cell cell=adapter.getSelectedCell();
  Rectangle rectangle=adapter.scrollCellToVisible(cell.getRow(),cell.getCol());
  Object editor=activateEditor(cell,rectangle);
  editor=setEditorToReplaceMode(editor,replace);
  getRobot().type(editor,text);
}

Fixed version (ground truth):
/** 
 * inputs/replaces the given text
 * @param text the text to input
 * @param replace whether to replace or not
 * @param cell {@link Cell} the location of a Cell
 * @throws StepExecutionException If there is no selected cell,or if the cell is not editable, or if the table cell editor permits the text to be written.
 */
private void inputText(final String text,boolean replace,Cell cell) throws StepExecutionException {
  ITableComponent adapter=getTableAdapter();
  Rectangle rectangle=adapter.scrollCellToVisible(cell.getRow(),cell.getCol());
  Object editor=activateEditor(cell,rectangle);
  editor=setEditorToReplaceMode(editor,replace);
  getRobot().type(editor,text);
}
Program: 95410
Project: 95410
Buggy source:
/** 
 * {@inheritDoc}
 */
public String[] getSelectedValues(){
  ListElement element=(ListElement)m_list.getElementAt(m_list.getSelectionIndex());
  return new String[]{element.getTabItem().getText()};
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public String[] getSelectedValues(){
  return new String[]{getTextOfElementAtIndex(m_list.getSelectionIndex())};
}
Program: 95411
Project: 95411
Buggy source:
/** 
 * {@inheritDoc}
 */
public String[] getValues(){
  String[] values=new String[m_list.getNumberOfElements()];
  for (int j=0; j < m_list.getNumberOfElements(); j++) {
    ListElement element=(ListElement)m_list.getElementAt(j);
    String string=element.getTabItem().getText();
    values[j]=string;
  }
  return values;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public String[] getValues(){
  List<String> values=new ArrayList<String>();
  try {
    for (int i=0; i < m_list.getNumberOfElements(); i++) {
      values.add(getTextOfElementAtIndex(i));
    }
  }
 catch (  NoSuchMethodError e) {
    int i=0;
    while (m_list.getElementAt(i) != null) {
      values.add(getTextOfElementAtIndex(i));
      i++;
    }
  }
  return values.toArray(new String[values.size()]);
}
Program: 95412
Project: 95412
Buggy source:
/** 
 * {@inheritDoc}
 */
public void clickOnIndex(Integer i,ClickOptions co){
  Canvas a=(Canvas)m_list.getElementAt(i.intValue());
  TabItem c=null;
  getRobot().click(a,null,co);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void clickOnIndex(final Integer index,final ClickOptions co){
  Object element=scrollToElement(index);
  getRobot().click(element,null,co);
}
Program: 95414
Project: 95414
Buggy source:
/** 
 * {@inheritDoc}
 */
public Message execute(){
  TakeScreenshotResponseMessage response=new TakeScreenshotResponseMessage();
  IRobot robot=AUTServer.getInstance().getRobot();
  final BufferedImage createScreenCapture=robot.createFullScreenCapture();
  Point currentPointingDevicePosition=robot.getCurrentMousePosition();
  if (currentPointingDevicePosition != null) {
    final int pdX=currentPointingDevicePosition.x;
    final int pdY=currentPointingDevicePosition.y;
    final int xStart=pdX - LINE_LENGTH_PER_DIRECTION;
    final int yStart=pdY - LINE_LENGTH_PER_DIRECTION;
    for (int i=0; i < TOTAL_LINE_LENGTH; i++) {
      for (int j=0; j < TOTAL_LINE_LENGTH; j++) {
        invertPixelAtPoint(createScreenCapture,xStart + i,yStart + j);
      }
    }
  }
  if (RobotConfiguration.getInstance().isErrorHighlighting()) {
    WeakReference<IComponent> errorComponent=AUTServer.getInstance().getErrorComponent();
    if (errorComponent != null) {
      try {
        highlightErrorComponent(errorComponent,robot,createScreenCapture);
      }
 catch (      RuntimeException e) {
        LOG.error("String_Node_Str",e);
      }
    }
  }
  final SerializedImage computedSerializeImage=SerializedImage.computeSerializeImage(createScreenCapture);
  response.setScreenshot(computedSerializeImage);
  return response;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public Message execute(){
  TakeScreenshotResponseMessage response=new TakeScreenshotResponseMessage();
  IRobot robot=AUTServer.getInstance().getRobot();
  final BufferedImage createScreenCapture=robot.createFullScreenCapture();
  try {
    Point currentPointingDevicePosition=robot.getCurrentMousePosition();
    if (currentPointingDevicePosition != null) {
      final int pdX=currentPointingDevicePosition.x;
      final int pdY=currentPointingDevicePosition.y;
      final int xStart=pdX - LINE_LENGTH_PER_DIRECTION;
      final int yStart=pdY - LINE_LENGTH_PER_DIRECTION;
      for (int i=0; i < TOTAL_LINE_LENGTH; i++) {
        for (int j=0; j < TOTAL_LINE_LENGTH; j++) {
          invertPixelAtPoint(createScreenCapture,xStart + i,yStart + j);
        }
      }
    }
  }
 catch (  Exception e) {
  }
  if (RobotConfiguration.getInstance().isErrorHighlighting()) {
    WeakReference<IComponent> errorComponent=AUTServer.getInstance().getErrorComponent();
    if (errorComponent != null) {
      try {
        highlightErrorComponent(errorComponent,robot,createScreenCapture);
      }
 catch (      RuntimeException e) {
        LOG.error("String_Node_Str",e);
      }
    }
  }
  final SerializedImage computedSerializeImage=SerializedImage.computeSerializeImage(createScreenCapture);
  response.setScreenshot(computedSerializeImage);
  return response;
}
Program: 95418
Project: 95418
Buggy source:
@Override public void handle(ActionEvent event){
  Iterator<Window> it=Window.impl_getWindows();
  List<Window> tempWin=new ArrayList<>();
  while (it.hasNext()) {
    Window w=it.next();
    tempWin.add(w);
    if (!windows.contains(w)) {
      windows.add(w);
    }
  }
  it=windows.listIterator();
  while (it.hasNext()) {
    Window w=it.next();
    if (!tempWin.contains(w)) {
      it.remove();
    }
  }
}

Fixed version (ground truth):
@Override public void handle(ActionEvent event){
  Iterator<Window> it=WindowsUtil.getWindowIterator();
  List<Window> tempWin=new ArrayList<>();
  while (it.hasNext()) {
    Window w=it.next();
    tempWin.add(w);
    if (!windows.contains(w)) {
      windows.add(w);
    }
  }
  it=windows.listIterator();
  while (it.hasNext()) {
    Window w=it.next();
    if (!tempWin.contains(w)) {
      it.remove();
    }
  }
}
Program: 95419
Project: 95419
Buggy source:
/** 
 * @param clickModifier the click modifier to use for this click
 * @return an array of modifiers to press before click and release afterclick
 */
private int[] getModifierMask(ClickModifier clickModifier){
  int[] modifier=new int[0];
  if (clickModifier.hasModifiers(ClickModifier.M1)) {
    modifier=ArrayUtils.add(modifier,KeyCode.CONTROL.impl_getCode());
  }
  if (clickModifier.hasModifiers(ClickModifier.M2)) {
    modifier=ArrayUtils.add(modifier,KeyCode.SHIFT.impl_getCode());
  }
  if (clickModifier.hasModifiers(ClickModifier.M3)) {
    modifier=ArrayUtils.add(modifier,KeyCode.ALT.impl_getCode());
  }
  if (clickModifier.hasModifiers(ClickModifier.M4)) {
    modifier=ArrayUtils.add(modifier,KeyCode.META.impl_getCode());
  }
  return modifier;
}

Fixed version (ground truth):
/** 
 * @param clickModifier the click modifier to use for this click
 * @return an array of modifiers to press before click and release afterclick
 */
private int[] getModifierMask(ClickModifier clickModifier){
  int[] modifier=new int[0];
  if (clickModifier.hasModifiers(ClickModifier.M1)) {
    modifier=ArrayUtils.add(modifier,KeyCodeUtil.getKeyCode(KeyCode.CONTROL));
  }
  if (clickModifier.hasModifiers(ClickModifier.M2)) {
    modifier=ArrayUtils.add(modifier,KeyCodeUtil.getKeyCode(KeyCode.SHIFT));
  }
  if (clickModifier.hasModifiers(ClickModifier.M3)) {
    modifier=ArrayUtils.add(modifier,KeyCodeUtil.getKeyCode(KeyCode.ALT));
  }
  if (clickModifier.hasModifiers(ClickModifier.M4)) {
    modifier=ArrayUtils.add(modifier,KeyCodeUtil.getKeyCode(KeyCode.META));
  }
  return modifier;
}
Program: 95420
Project: 95420
Buggy source:
public String call(){
  Iterator<Window> iter=Window.impl_getWindows();
  while (iter.hasNext()) {
    Window window=iter.next();
    if (window instanceof Tooltip) {
      return ((Tooltip)window).getText();
    }
  }
  return null;
}

Fixed version (ground truth):
public String call(){
  Iterator<Window> iter=WindowsUtil.getWindowIterator();
  while (iter.hasNext()) {
    Window window=iter.next();
    if (window instanceof Tooltip) {
      return ((Tooltip)window).getText();
    }
  }
  return null;
}
Program: 95421
Project: 95421
Buggy source:
@Override public String getTooltipText(){
  return EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    public String call(){
      Iterator<Window> iter=Window.impl_getWindows();
      while (iter.hasNext()) {
        Window window=iter.next();
        if (window instanceof Tooltip) {
          return ((Tooltip)window).getText();
        }
      }
      return null;
    }
  }
);
}

Fixed version (ground truth):
@Override public String getTooltipText(){
  return EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    public String call(){
      Iterator<Window> iter=WindowsUtil.getWindowIterator();
      while (iter.hasNext()) {
        Window window=iter.next();
        if (window instanceof Tooltip) {
          return ((Tooltip)window).getText();
        }
      }
      return null;
    }
  }
);
}
Program: 95422
Project: 95422
Buggy source:
/** 
 * Opens the list of choices for the ChoiceBox.
 * @return A MenuTester object to select Items. This is Possible because theChoiceBox uses a ContextMenu.
 */
private MenuTester openMenu(){
  getRobot().click(getRealComponent(),null);
  return EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<MenuTester>(){
    @Override public MenuTester call() throws Exception {
      MenuTester menuTester=null;
      Iterator<Window> iter=Window.impl_getWindows();
      long timeout=TimeoutConstants.SERVER_TIMEOUT_WAIT_FOR_POPUP;
      long done=System.currentTimeMillis() + timeout;
      long now;
      do {
        if (!iter.hasNext()) {
          iter=Window.impl_getWindows();
        }
        Window w=iter.next();
        if (w instanceof ContextMenu && ((ContextMenu)w).getOwnerNode().equals(getRealComponent())) {
          menuTester=new MenuTester();
          menuTester.setComponent(w);
          break;
        }
        now=System.currentTimeMillis();
        timeout=done - now;
      }
 while (timeout > 0);
      return menuTester;
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Opens the list of choices for the ChoiceBox.
 * @return A MenuTester object to select Items. This is Possible because theChoiceBox uses a ContextMenu.
 */
private MenuTester openMenu(){
  getRobot().click(getRealComponent(),null);
  return EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<MenuTester>(){
    @Override public MenuTester call() throws Exception {
      MenuTester menuTester=null;
      Iterator<Window> iter=WindowsUtil.getWindowIterator();
      long timeout=TimeoutConstants.SERVER_TIMEOUT_WAIT_FOR_POPUP;
      long done=System.currentTimeMillis() + timeout;
      long now;
      do {
        if (!iter.hasNext()) {
          iter=WindowsUtil.getWindowIterator();
        }
        Window w=iter.next();
        if (w instanceof ContextMenu && ((ContextMenu)w).getOwnerNode().equals(getRealComponent())) {
          menuTester=new MenuTester();
          menuTester.setComponent(w);
          break;
        }
        now=System.currentTimeMillis();
        timeout=done - now;
      }
 while (timeout > 0);
      return menuTester;
    }
  }
);
}
Program: 95424
Project: 95424
Buggy source:
@Override public Object getAdapter(Class targetAdapterClass,Object objectToAdapt){
  IComponent returnvalue=null;
  if (targetAdapterClass.isAssignableFrom(IComponent.class)) {
    returnvalue=getComponentAdapter(objectToAdapt);
  }
  if (returnvalue == null && targetAdapterClass.isAssignableFrom(IContainerAdapter.class)) {
    returnvalue=getContainerAdapter(objectToAdapt);
  }
  if (returnvalue == null && targetAdapterClass.isAssignableFrom(IComponent.class) && objectToAdapt instanceof Node) {
    return new JavaFXComponentAdapter<Node>((Node)objectToAdapt);
  }
  return returnvalue;
}

Fixed version (ground truth):
@Override public Object getAdapter(Class targetAdapterClass,Object objectToAdapt){
  IComponent returnvalue=null;
  if (targetAdapterClass.equals(IComponent.class)) {
    returnvalue=getComponentAdapter(objectToAdapt);
  }
  if (returnvalue == null && targetAdapterClass.equals(IContainerAdapter.class)) {
    returnvalue=getContainerAdapter(objectToAdapt);
  }
  if (returnvalue == null && targetAdapterClass.equals(IComponent.class) && objectToAdapt instanceof Node) {
    return new JavaFXComponentAdapter<Node>((Node)objectToAdapt);
  }
  return returnvalue;
}
Program: 95426
Project: 95426
Buggy source:
/** 
 * {@inheritDoc} 
 */
public ListView<?> call() throws Exception {
  T comboBox=getRealComponent();
  List<ListView> listViewList=NodeTraverseHelper.getInstancesOf(comboBox,ListView.class);
  if (listViewList.size() == 1) {
    return listViewList.get(0);
  }
  ComboBoxListViewSkin<?> comboBoxListViewSkin=(ComboBoxListViewSkin<?>)comboBox.getSkin();
  return (ListView<?>)comboBoxListViewSkin.getPopupContent();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
public ListView<?> call() throws Exception {
  T comboBox=getRealComponent();
  @SuppressWarnings("String_Node_Str") List<ListView> listViewList=NodeTraverseHelper.getInstancesOf(comboBox,ListView.class);
  if (listViewList.size() == 1) {
    return listViewList.get(0);
  }
  ComboBoxListViewSkin<?> comboBoxListViewSkin=(ComboBoxListViewSkin<?>)comboBox.getSkin();
  return (ListView<?>)comboBoxListViewSkin.getPopupContent();
}
Program: 95427
Project: 95427
Buggy source:
/** 
 * Returns the list with the items of the combo box.
 * @return the list
 */
private ListView<?> getComboBoxList(){
  return EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<ListView<?>>(){
    /** 
 * {@inheritDoc} 
 */
    public ListView<?> call() throws Exception {
      T comboBox=getRealComponent();
      List<ListView> listViewList=NodeTraverseHelper.getInstancesOf(comboBox,ListView.class);
      if (listViewList.size() == 1) {
        return listViewList.get(0);
      }
      ComboBoxListViewSkin<?> comboBoxListViewSkin=(ComboBoxListViewSkin<?>)comboBox.getSkin();
      return (ListView<?>)comboBoxListViewSkin.getPopupContent();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Returns the list with the items of the combo box.
 * @return the list
 */
private ListView<?> getComboBoxList(){
  return EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<ListView<?>>(){
    /** 
 * {@inheritDoc} 
 */
    public ListView<?> call() throws Exception {
      T comboBox=getRealComponent();
      @SuppressWarnings("String_Node_Str") List<ListView> listViewList=NodeTraverseHelper.getInstancesOf(comboBox,ListView.class);
      if (listViewList.size() == 1) {
        return listViewList.get(0);
      }
      ComboBoxListViewSkin<?> comboBoxListViewSkin=(ComboBoxListViewSkin<?>)comboBox.getSkin();
      return (ListView<?>)comboBoxListViewSkin.getPopupContent();
    }
  }
);
}
Program: 95428
Project: 95428
Buggy source:
/** 
 * {@inheritDoc}
 */
public String getPropertyValueOfCell(String name,ListCell<?> cell){
  Object prop=EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    @Override public String call() throws Exception {
      try {
        IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
        if (adapter != null) {
          return ((ITextComponent)adapter).getPropteryValue(name);
        }
        return null;
      }
 catch (      RobotException e) {
        throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
      }
    }
  }
);
  return String.valueOf(prop);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public String getPropertyValueOfCell(String name,ListCell<?> cell){
  Object prop=EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    @Override public String call() throws Exception {
      try {
        IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
        if (adapter != null && adapter instanceof ITextComponent) {
          return ((ITextComponent)adapter).getPropteryValue(name);
        }
        return null;
      }
 catch (      RobotException e) {
        throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
      }
    }
  }
);
  return String.valueOf(prop);
}
Program: 95429
Project: 95429
Buggy source:
@Override public String call() throws Exception {
  try {
    IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
    if (adapter != null) {
      return ((ITextComponent)adapter).getPropteryValue(name);
    }
    return null;
  }
 catch (  RobotException e) {
    throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
  }
}

Fixed version (ground truth):
@Override public String call() throws Exception {
  try {
    IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
    if (adapter != null && adapter instanceof ITextComponent) {
      return ((ITextComponent)adapter).getPropteryValue(name);
    }
    return null;
  }
 catch (  RobotException e) {
    throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
  }
}
Program: 95430
Project: 95430
Buggy source:
/** 
 * {@inheritDoc}
 */
public String getPropertyValueOfCell(String name,TableCell<?,?> cell){
  Object prop=EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    @Override public String call() throws Exception {
      try {
        IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
        if (adapter != null) {
          return ((ITextComponent)adapter).getPropteryValue(name);
        }
        return null;
      }
 catch (      RobotException e) {
        throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
      }
    }
  }
);
  return String.valueOf(prop);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public String getPropertyValueOfCell(String name,TableCell<?,?> cell){
  Object prop=EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    @Override public String call() throws Exception {
      try {
        IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
        if (adapter != null && adapter instanceof ITextComponent) {
          return ((ITextComponent)adapter).getPropteryValue(name);
        }
        return null;
      }
 catch (      RobotException e) {
        throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
      }
    }
  }
);
  return String.valueOf(prop);
}
Program: 95431
Project: 95431
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public String getPropertyValueOfCell(String name,TreeTableCell<?,?> cell){
  Object prop=EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    @Override public String call() throws Exception {
      try {
        IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
        if (adapter != null) {
          return ((ITextComponent)adapter).getPropteryValue(name);
        }
        return null;
      }
 catch (      RobotException e) {
        throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
      }
    }
  }
);
  return String.valueOf(prop);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String getPropertyValueOfCell(String name,TreeTableCell<?,?> cell){
  Object prop=EventThreadQueuerJavaFXImpl.invokeAndWait("String_Node_Str",new Callable<String>(){
    @Override public String call() throws Exception {
      try {
        IComponent adapter=(IComponent)AdapterFactoryRegistry.getInstance().getAdapter(IComponent.class,cell);
        if (adapter != null && adapter instanceof ITextComponent) {
          return ((ITextComponent)adapter).getPropteryValue(name);
        }
        return null;
      }
 catch (      RobotException e) {
        throw new StepExecutionException(e.getMessage(),EventFactory.createActionError(TestErrorEvent.PROPERTY_NOT_ACCESSABLE));
      }
    }
  }
);
  return String.valueOf(prop);
}
Program: 95433
Project: 95433
Buggy source:
/** 
 * @param area The composite.creates the text field to edit the comment text
 */
private void createCommentTextField(Composite area){
  m_commentTextField=new Text(area,SWT.MULTI | SWT.BORDER | SWT.WRAP| SWT.V_SCROLL);
  if (m_comment != null) {
    m_commentTextField.setText(m_comment.getName());
  }
  GridData gridData=newGridData();
  gridData.grabExcessVerticalSpace=true;
  gridData.verticalAlignment=SWT.FILL;
  LayoutUtil.addToolTipAndMaxWidth(gridData,m_commentTextField);
  m_commentTextField.setLayoutData(gridData);
  LayoutUtil.setMaxChar(m_commentTextField,org.eclipse.jubula.client.core.model.IPersistentObject.MAX_STRING_LENGTH);
}

Fixed version (ground truth):
/** 
 * @param area The composite.creates the text field to edit the comment text
 */
private void createCommentTextField(Composite area){
  m_commentTextField=new Text(area,SWT.MULTI | SWT.BORDER | SWT.WRAP| SWT.V_SCROLL);
  if (m_comment != null) {
    m_commentTextField.setText(StringUtils.defaultIfBlank(m_comment.getName(),StringUtils.EMPTY));
  }
  GridData gridData=newGridData();
  gridData.grabExcessVerticalSpace=true;
  gridData.verticalAlignment=SWT.FILL;
  LayoutUtil.addToolTipAndMaxWidth(gridData,m_commentTextField);
  m_commentTextField.setLayoutData(gridData);
  LayoutUtil.setMaxChar(m_commentTextField,org.eclipse.jubula.client.core.model.IPersistentObject.MAX_STRING_LENGTH);
}
Program: 95434
Project: 95434
Buggy source:
/** 
 * Finds the first column which contains the value <code>value</code> in the given row and selects the cell.
 * @param row the row
 * @param rowOperator the row header operator
 * @param value the value
 * @param regex search using regex
 * @param extendSelection Should this selection be part of a multiple selection
 * @param searchType Determines where the search begins ("relative" or "absolute")
 * @param co the click options to use
 */
protected void selectCellByColValue(String row,String rowOperator,final String value,final String regex,final String extendSelection,final String searchType,ClickOptions co){
  ITableComponent adapter=getTableAdapter();
  final int implRow=adapter.getRowFromString(row,rowOperator);
  int colCount=adapter.getColumnCount();
  Integer implCol=null;
  if (implRow == -1) {
    for (int i=getStartingColIndex(searchType); i < colCount; ++i) {
      if (MatchUtil.getInstance().match(adapter.getColumnHeaderText(i),value,regex)) {
        implCol=new Integer(i);
        break;
      }
    }
  }
 else {
    for (int i=getStartingColIndex(searchType); i < colCount; ++i) {
      if (MatchUtil.getInstance().match(getCellText(implRow,i),value,regex)) {
        implCol=new Integer(i);
        break;
      }
    }
  }
  if (implCol == null) {
    throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.NOT_FOUND));
  }
  String usrIdxRowStr=new Integer(IndexConverter.toUserIndex(implRow)).toString();
  String usrIdxColStr=new Integer(IndexConverter.toUserIndex(implCol.intValue())).toString();
  selectCell(usrIdxRowStr,rowOperator,usrIdxColStr,MatchUtil.EQUALS,co,extendSelection);
}

Fixed version (ground truth):
/** 
 * Finds the first column which contains the value <code>value</code> in the given row and selects the cell.
 * @param row the row
 * @param rowOperator the row header operator
 * @param value the value
 * @param regex search using regex
 * @param extendSelection Should this selection be part of a multiple selection
 * @param searchType Determines where the search begins ("relative" or "absolute")
 * @param co the click options to use
 */
protected void selectCellByColValue(String row,String rowOperator,final String value,final String regex,final String extendSelection,final String searchType,ClickOptions co){
  ITableComponent adapter=getTableAdapter();
  final int implRow=adapter.getRowFromString(row,rowOperator);
  Integer implCol=findColumn(value,regex,searchType,adapter,implRow);
  String usrIdxRowStr=new Integer(IndexConverter.toUserIndex(implRow)).toString();
  String usrIdxColStr=new Integer(IndexConverter.toUserIndex(implCol.intValue())).toString();
  selectCell(usrIdxRowStr,rowOperator,usrIdxColStr,MatchUtil.EQUALS,co,extendSelection);
}
Program: 95435
Project: 95435
Buggy source:
/** 
 * Finds the first row which contains the value <code>value</code> in column <code>col</code> and selects this row.
 * @param col the column
 * @param colOperator the column header operator
 * @param value the value
 * @param regexOp the regex operator
 * @param extendSelection Should this selection be part of a multiple selection
 * @param searchType Determines where the search begins ("relative" or "absolute")
 * @param co the clickOptions to use
 */
protected void selectRowByValue(String col,String colOperator,final String value,final String regexOp,final String extendSelection,final String searchType,ClickOptions co){
  ITableComponent adapter=getTableAdapter();
  final int implCol=adapter.getColumnFromString(col,colOperator);
  Integer implRow=null;
  final int rowCount=adapter.getRowCount();
  for (int i=getStartingRowIndex(searchType); i < rowCount; ++i) {
    if (MatchUtil.getInstance().match(getCellText(i,implCol),value,regexOp)) {
      implRow=new Integer(i);
      break;
    }
  }
  if (implRow == null) {
    String header=adapter.getColumnHeaderText(implCol);
    if (MatchUtil.getInstance().match(header,value,regexOp)) {
      implRow=new Integer(-1);
    }
  }
  if (implRow == null) {
    throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.NOT_FOUND));
  }
  String userIdxRow=new Integer(IndexConverter.toUserIndex(implRow.intValue())).toString();
  String userIdxCol=new Integer(IndexConverter.toUserIndex(implCol)).toString();
  selectCell(userIdxRow,MatchUtil.EQUALS,userIdxCol,colOperator,co,extendSelection);
}

Fixed version (ground truth):
/** 
 * Finds the first row which contains the value <code>value</code> in column <code>col</code> and selects this row.
 * @param col the column
 * @param colOperator the column header operator
 * @param value the value
 * @param regexOp the regex operator
 * @param extendSelection Should this selection be part of a multiple selection
 * @param searchType Determines where the search begins ("relative" or "absolute")
 * @param co the clickOptions to use
 */
protected void selectRowByValue(String col,String colOperator,final String value,final String regexOp,final String extendSelection,final String searchType,ClickOptions co){
  ITableComponent adapter=getTableAdapter();
  final int implCol=adapter.getColumnFromString(col,colOperator);
  Integer implRow=findRow(value,regexOp,searchType,adapter,implCol);
  String userIdxRow=new Integer(IndexConverter.toUserIndex(implRow.intValue())).toString();
  String userIdxCol=new Integer(IndexConverter.toUserIndex(implCol)).toString();
  selectCell(userIdxRow,MatchUtil.EQUALS,userIdxCol,colOperator,co,extendSelection);
}
Program: 95436
Project: 95436
Buggy source:
@Override public void rcDropRowByValue(String col,String colOperator,String value,String regexOp,String searchType,int delayBeforeDrop){
  try {
    ITableComponent adapter=(ITableComponent)getComponent();
    int implRow=adapter.getRowFromString(value,regexOp);
    int implCol=adapter.getColumnFromString(col,colOperator);
    TableCell targetCell=getCellAt(implRow + 1,implCol + 1);
    if (targetCell == null) {
      throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.NOT_VISIBLE));
    }
    super.rcDropRowByValue(col,colOperator,value,regexOp,searchType,delayBeforeDrop);
  }
  finally {
    Node table=((Node)getRealComponent());
    table.removeEventFilter(ScrollToEvent.ANY,m_scrollConsumer);
    DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
    dndHelper.setDragMode(false);
  }
}

Fixed version (ground truth):
@Override public void rcDropRowByValue(String col,String colOperator,String value,String regexOp,String searchType,int delayBeforeDrop){
  try {
    ITableComponent adapter=(ITableComponent)getComponent();
    int implCol=adapter.getColumnFromString(col,colOperator);
    int implRow=super.findRow(value,regexOp,searchType,adapter,implCol);
    TableCell targetCell=getCellAt(implRow + 1,implCol + 1);
    if (targetCell == null) {
      throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.NOT_VISIBLE));
    }
    super.rcDropRowByValue(col,colOperator,value,regexOp,searchType,delayBeforeDrop);
  }
  finally {
    Node table=((Node)getRealComponent());
    table.removeEventFilter(ScrollToEvent.ANY,m_scrollConsumer);
    DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
    dndHelper.setDragMode(false);
  }
}
Program: 95437
Project: 95437
Buggy source:
@Override public void rcDropCellByColValue(String row,String rowOperator,String value,String regex,String searchType,int delayBeforeDrop){
  try {
    ITableComponent adapter=(ITableComponent)getComponent();
    int implRow=adapter.getRowFromString(row,rowOperator);
    int implCol=adapter.getColumnFromString(value,regex);
    TableCell targetCell=getCellAt(implRow + 1,implCol + 1);
    if (targetCell == null) {
      throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.NOT_VISIBLE));
    }
    super.rcDropCellByColValue(row,rowOperator,value,regex,searchType,delayBeforeDrop);
  }
  finally {
    Node table=((Node)getRealComponent());
    table.removeEventFilter(ScrollToEvent.ANY,m_scrollConsumer);
    DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
    dndHelper.setDragMode(false);
  }
}

Fixed version (ground truth):
@Override public void rcDropCellByColValue(String row,String rowOperator,String value,String regex,String searchType,int delayBeforeDrop){
  try {
    ITableComponent adapter=(ITableComponent)getComponent();
    int implRow=adapter.getRowFromString(row,rowOperator);
    int implCol=super.findColumn(value,regex,searchType,adapter,implRow);
    TableCell targetCell=getCellAt(implRow + 1,implCol + 1);
    if (targetCell == null) {
      throw new StepExecutionException("String_Node_Str",EventFactory.createActionError(TestErrorEvent.NOT_VISIBLE));
    }
    super.rcDropCellByColValue(row,rowOperator,value,regex,searchType,delayBeforeDrop);
  }
  finally {
    Node table=((Node)getRealComponent());
    table.removeEventFilter(ScrollToEvent.ANY,m_scrollConsumer);
    DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
    dndHelper.setDragMode(false);
  }
}
Program: 95438
Project: 95438
Buggy source:
/** 
 * @param string the method name
 * @return the keycode
 * @throws NoSuchMethodException {@link Class#getMethod(String,Class)}
 * @throws IllegalAccessException {@link Method#invoke(Object,Object)}
 * @throws InvocationTargetException {@link Method#invoke(Object,Object)}
 */
private static int getKeyCodeViaReflection(String string) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
  Class<KeyCode> clazz=KeyCode.class;
  Method method=clazz.getMethod(string);
  Object o=method.invoke(null);
  if (o instanceof Integer) {
    return ((Integer)o);
  }
  Assert.notReached();
  return -1;
}

Fixed version (ground truth):
/** 
 * @param string the method name
 * @param keyCode the  {@link KeyCode} where we need the integer code from
 * @return the integer code
 * @throws NoSuchMethodException {@link Class#getMethod(String,Class)}
 * @throws IllegalAccessException {@link Method#invoke(Object,Object)}
 * @throws InvocationTargetException {@link Method#invoke(Object,Object)}
 */
private static int getKeyCodeViaReflection(String string,KeyCode keyCode) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
  Class<KeyCode> clazz=KeyCode.class;
  Method method=clazz.getMethod(string);
  Object o=method.invoke(keyCode);
  if (o instanceof Integer) {
    return ((Integer)o);
  }
  Assert.notReached();
  return -1;
}
Program: 95439
Project: 95439
Buggy source:
/** 
 * @param keyCode the keyCode
 * @return the underlying platform code see {@link KeyCode#impl_getCode()}or   {@link KeyCode#getCode()}
 */
public static int getKeyCode(KeyCode keyCode){
  try {
    return getKeyCodeViaReflection("String_Node_Str");
  }
 catch (  Exception e) {
  }
  try {
    return getKeyCodeViaReflection("String_Node_Str");
  }
 catch (  Exception e) {
  }
  throw new NoSuchMethodError("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * @param keyCode the keyCode
 * @return the underlying platform code see {@link KeyCode#impl_getCode()}or   {@link KeyCode#getCode()}
 */
public static int getKeyCode(KeyCode keyCode){
  try {
    return getKeyCodeViaReflection("String_Node_Str",keyCode);
  }
 catch (  Exception e) {
  }
  try {
    return getKeyCodeViaReflection("String_Node_Str",keyCode);
  }
 catch (  Exception e) {
  }
  throw new NoSuchMethodError("String_Node_Str");
}
Program: 95440
Project: 95440
Buggy source:
/** 
 * {@inheritDoc}
 */
public void rcDropByIndexPath(String pathType,int preAscend,String treeIndexPath,int delayBeforeDrop){
  try {
    rcSelectByIndices(pathType,preAscend,treeIndexPath,0,1,ValueSets.BinaryChoice.no.rcValue());
    waitBeforeDrop(delayBeforeDrop);
  }
  finally {
    final DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void rcDropByIndexPath(String pathType,int preAscend,String treeIndexPath,int delayBeforeDrop){
  try {
    getRobot().shakeMouse();
    rcSelectByIndices(pathType,preAscend,treeIndexPath,0,1,ValueSets.BinaryChoice.no.rcValue());
    waitBeforeDrop(delayBeforeDrop);
  }
  finally {
    final DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
  }
}
Program: 95441
Project: 95441
Buggy source:
/** 
 * {@inheritDoc}
 */
public void rcDropByTextPath(String pathType,int preAscend,String treeTextPath,String operator,int delayBeforeDrop){
  try {
    rcSelect(pathType,preAscend,treeTextPath,operator,0,1,ValueSets.BinaryChoice.no.rcValue());
    waitBeforeDrop(delayBeforeDrop);
  }
  finally {
    final DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void rcDropByTextPath(String pathType,int preAscend,String treeTextPath,String operator,int delayBeforeDrop){
  try {
    getRobot().shakeMouse();
    rcSelect(pathType,preAscend,treeTextPath,operator,0,1,ValueSets.BinaryChoice.no.rcValue());
    waitBeforeDrop(delayBeforeDrop);
  }
  finally {
    final DragAndDropHelper dndHelper=DragAndDropHelper.getInstance();
    getRobot().mouseRelease(null,null,dndHelper.getMouseButton());
    pressOrReleaseModifiers(dndHelper.getModifier(),false);
  }
}
Program: 95442
Project: 95442
Buggy source:
@Override public void onChanged(Change<? extends EventTarget> c){
  c.next();
  List<? extends EventTarget> changedObjects=c.getRemoved();
  for (  EventTarget o : changedObjects) {
    m_hierarchy.removeComponentFromHierarchy(o);
  }
  changedObjects=c.getAddedSubList();
  for (  EventTarget o : changedObjects) {
    m_hierarchy.createHierarchyFrom(o);
  }
}

Fixed version (ground truth):
@Override public void onChanged(Change<? extends EventTarget> c){
  c.next();
  List<? extends EventTarget> changedObjects=c.getRemoved();
  for (  EventTarget o : changedObjects) {
    m_hierarchy.removeComponentFromHierarchy(o);
  }
  List<? extends EventTarget> list=c.getList();
  int size=list.size();
  if (c.wasAdded() && c.getTo() > size) {
    changedObjects=list.subList(c.getFrom(),size);
  }
 else {
    changedObjects=c.getAddedSubList();
  }
  for (  EventTarget o : changedObjects) {
    m_hierarchy.createHierarchyFrom(o);
  }
}
Program: 95443
Project: 95443
Buggy source:
/** 
 * Method to get the single instance of this class.
 * @throws ConnectionException if an error occurs during initialization.
 * @return the instance of this Singleton
 */
public static synchronized AUTConnection getInstance() throws ConnectionException {
  if (instance == null) {
    instance=new AUTConnection();
  }
  return instance;
}

Fixed version (ground truth):
/** 
 * Method to get the single instance of this class.
 * @throws ConnectionException if an error occurs during initialization.
 * @return the instance of this Singleton
 */
public static synchronized AUTConnection getInstance() throws ConnectionException {
  if (instance == null) {
    instance=new AUTConnection(0);
  }
  return instance;
}
Program: 95444
Project: 95444
Buggy source:
/** 
 * private constructor. creates a communicator
 * @throws ConnectionException containing a detailed message why the connection could not initialized
 */
private AUTConnection() throws ConnectionException {
  super();
}

Fixed version (ground truth):
/** 
 * private constructor. creates a communicator
 * @param port the port or 0 if automatically a port should be assigned
 * @throws ConnectionException containing a detailed message why the connection could not initialized
 */
private AUTConnection(int port) throws ConnectionException {
  super(port);
}
Program: 95447
Project: 95447
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void rcDragByIndexPath(int mouseButton,String modifier,String pathType,int preAscend,String treeIndexPath){
  SwtUtils.waitForDisplayIdle(getTreeTable().getDisplay());
  super.rcDragByIndexPath(mouseButton,modifier,pathType,preAscend,treeIndexPath);
  SwtUtils.waitForDisplayIdle(getTreeTable().getDisplay());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void rcDragByIndexPath(int mouseButton,String modifier,String pathType,int preAscend,String treeIndexPath){
  postMouseMovementEvent();
  super.rcDragByIndexPath(mouseButton,modifier,pathType,preAscend,treeIndexPath);
  postMouseMovementEvent();
}
Program: 95448
Project: 95448
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void rcDragByTextPath(int mouseButton,String modifier,String pathType,int preAscend,String treeTextPath,String operator){
  SwtUtils.waitForDisplayIdle(getTreeTable().getDisplay());
  super.rcDragByTextPath(mouseButton,modifier,pathType,preAscend,treeTextPath,operator);
  SwtUtils.waitForDisplayIdle(getTreeTable().getDisplay());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void rcDragByTextPath(int mouseButton,String modifier,String pathType,int preAscend,String treeTextPath,String operator){
  postMouseMovementEvent();
  super.rcDragByTextPath(mouseButton,modifier,pathType,preAscend,treeTextPath,operator);
  postMouseMovementEvent();
}
Program: 95449
Project: 95449
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void rcDropByIndexPath(final String pathType,final int preAscend,final String indexPath,int delayBeforeDrop){
  Event wakeEvent=new Event();
  wakeEvent.type=SWT.MouseMove;
  getTreeTable().getDisplay().post(wakeEvent);
  waitForDisplayUpdate();
  SwtUtils.waitForDisplayIdle(getTreeTable().getDisplay());
  super.rcDropByIndexPath(pathType,preAscend,indexPath,delayBeforeDrop);
  SwtUtils.waitForDisplayIdle(getTreeTable().getDisplay());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void rcDropByIndexPath(final String pathType,final int preAscend,final String indexPath,int delayBeforeDrop){
  postMouseMovementEvent();
  super.rcDropByIndexPath(pathType,preAscend,indexPath,delayBeforeDrop);
  postMouseMovementEvent();
}