Program: 78003
Project: 78003
Buggy source:
protected Control createContents(Composite parent){
  super.createFieldEditors();
  final Composite innerParent=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  innerParent.setLayout(layout);
  innerParent.setLayoutData(new GridData(GridData.FILL_BOTH));
  final Table table=new Table(innerParent,SWT.BORDER | SWT.FULL_SELECTION);
  GridData data=new GridData(GridData.FILL_BOTH);
  table.setLayoutData(data);
  table.setHeaderVisible(true);
  table.setLinesVisible(false);
  TableLayout tableLayout=new TableLayout();
  table.setLayout(tableLayout);
  final TableColumn column1=new TableColumn(table,SWT.NONE);
  column1.setText(Messages.getString("String_Node_Str"));
  final TableColumn column2=new TableColumn(table,SWT.NONE);
  column2.setText(Messages.getString("String_Node_Str"));
  fTableViewer=new TableViewer(table);
  fTableViewer.setLabelProvider(new HighlightLabelProvider());
  fTableViewer.setContentProvider(new HighlightContentProvider());
  fTableViewer.setSorter(null);
  fTableViewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      updateButtons();
    }
  }
);
  fTableViewer.addDoubleClickListener(new IDoubleClickListener(){
    public void doubleClick(    DoubleClickEvent event){
      edit();
    }
  }
);
  innerParent.addControlListener(new ControlAdapter(){
    public void controlResized(    ControlEvent e){
      Rectangle area=innerParent.getClientArea();
      Point preferredSize=table.computeSize(SWT.DEFAULT,SWT.DEFAULT);
      int width=area.width - 2 * table.getBorderWidth();
      if (preferredSize.y > area.height) {
        Point vBarSize=table.getVerticalBar().getSize();
        width-=vBarSize.x;
      }
      Point oldSize=table.getSize();
      if (oldSize.x > width) {
        column1.setWidth(2 * width / 5);
        column2.setWidth(width - column1.getWidth());
        table.setSize(width,area.height);
      }
 else {
        table.setSize(width,area.height);
        column1.setWidth(2 * width / 5);
        column2.setWidth(width - column1.getWidth());
      }
    }
  }
);
  Composite buttons=new Composite(innerParent,SWT.NONE);
  buttons.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
  layout=new GridLayout();
  layout.numColumns=6;
  layout.marginHeight=0;
  layout.marginWidth=0;
  buttons.setLayout(layout);
  fAddButton=new Button(buttons,SWT.PUSH);
  fAddButton.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=Math.max(fAddButton.computeSize(-1,-1).x,60);
  data.heightHint=24;
  fAddButton.setLayoutData(data);
  fAddButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      add();
    }
  }
);
  fEditButton=new Button(buttons,SWT.PUSH);
  fEditButton.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=Math.max(fEditButton.computeSize(-1,-1).x,60);
  data.heightHint=24;
  fEditButton.setLayoutData(data);
  fEditButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      edit();
    }
  }
);
  fDeleteButton=new Button(buttons,SWT.PUSH);
  fDeleteButton.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=Math.max(fDeleteButton.computeSize(-1,-1).x,60);
  data.heightHint=24;
  fDeleteButton.setLayoutData(data);
  fDeleteButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      delete();
    }
  }
);
  fMoveUpButton=new Button(buttons,SWT.ARROW);
  fMoveUpButton.setAlignment(SWT.UP);
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=40;
  data.heightHint=24;
  fMoveUpButton.setLayoutData(data);
  fMoveUpButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      moveUp();
    }
  }
);
  fMoveDownButton=new Button(buttons,SWT.ARROW);
  fMoveDownButton.setAlignment(SWT.DOWN);
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=40;
  data.heightHint=24;
  fMoveDownButton.setLayoutData(data);
  fMoveDownButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      moveDown();
    }
  }
);
  fTableViewer.setInput(model);
  refreshTableItemView();
  updateButtons();
  Dialog.applyDialogFont(parent);
  return innerParent;
}

Fixed version (ground truth):
protected Control createContents(Composite parent){
  super.createFieldEditors();
  final Composite innerParent=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  innerParent.setLayout(layout);
  innerParent.setLayoutData(new GridData(GridData.FILL_BOTH));
  final Table table=new Table(innerParent,SWT.BORDER | SWT.FULL_SELECTION);
  GridData data=new GridData(GridData.FILL_BOTH);
  table.setLayoutData(data);
  table.setHeaderVisible(true);
  table.setLinesVisible(false);
  TableLayout tableLayout=new TableLayout();
  table.setLayout(tableLayout);
  final TableColumn column1=new TableColumn(table,SWT.NONE);
  column1.setText(Messages.getString("String_Node_Str"));
  final TableColumn column2=new TableColumn(table,SWT.NONE);
  column2.setText(Messages.getString("String_Node_Str"));
  fTableViewer=new TableViewer(table);
  fTableViewer.setLabelProvider(new HighlightLabelProvider());
  fTableViewer.setContentProvider(new HighlightContentProvider());
  fTableViewer.setSorter(null);
  fTableViewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      updateButtons();
    }
  }
);
  fTableViewer.addDoubleClickListener(new IDoubleClickListener(){
    public void doubleClick(    DoubleClickEvent event){
      edit();
    }
  }
);
  innerParent.addControlListener(new ControlAdapter(){
    public void controlResized(    ControlEvent e){
      Rectangle area=innerParent.getClientArea();
      Point preferredSize=table.computeSize(SWT.DEFAULT,SWT.DEFAULT);
      int width=area.width - 2 * table.getBorderWidth();
      if (preferredSize.y > area.height) {
        Point vBarSize=table.getVerticalBar().getSize();
        width-=vBarSize.x;
      }
      Point oldSize=table.getSize();
      if (oldSize.x > width) {
        column1.setWidth(2 * width / 5);
        column2.setWidth(width - column1.getWidth());
        table.setSize(width,area.height);
      }
 else {
        table.setSize(width,area.height);
        column1.setWidth(2 * width / 5);
        column2.setWidth(width - column1.getWidth());
      }
    }
  }
);
  Composite buttons=new Composite(innerParent,SWT.NONE);
  buttons.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
  layout=new GridLayout();
  layout.numColumns=6;
  layout.marginHeight=0;
  layout.marginWidth=0;
  buttons.setLayout(layout);
  fAddButton=new Button(buttons,SWT.PUSH);
  fAddButton.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=Math.max(fAddButton.computeSize(-1,-1).x,60);
  fAddButton.setLayoutData(data);
  fAddButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      add();
    }
  }
);
  fEditButton=new Button(buttons,SWT.PUSH);
  fEditButton.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=Math.max(fEditButton.computeSize(-1,-1).x,60);
  fEditButton.setLayoutData(data);
  fEditButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      edit();
    }
  }
);
  fDeleteButton=new Button(buttons,SWT.PUSH);
  fDeleteButton.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=Math.max(fDeleteButton.computeSize(-1,-1).x,60);
  fDeleteButton.setLayoutData(data);
  fDeleteButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      delete();
    }
  }
);
  fMoveUpButton=new Button(buttons,SWT.ARROW);
  fMoveUpButton.setAlignment(SWT.UP);
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=40;
  data.heightHint=24;
  fMoveUpButton.setLayoutData(data);
  fMoveUpButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      moveUp();
    }
  }
);
  fMoveDownButton=new Button(buttons,SWT.ARROW);
  fMoveDownButton.setAlignment(SWT.DOWN);
  data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  data.widthHint=40;
  data.heightHint=24;
  fMoveDownButton.setLayoutData(data);
  fMoveDownButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      moveDown();
    }
  }
);
  fTableViewer.setInput(model);
  refreshTableItemView();
  updateButtons();
  Dialog.applyDialogFont(parent);
  return innerParent;
}