Program: 62317
Project: 62317
Buggy source:
private void initTable(SashForm sashForm_1){
  table=new Table(sashForm_1,SWT.BORDER | SWT.FULL_SELECTION);
  table.addMouseListener(new MouseAdapter(){
    @Override public void mouseDoubleClick(    MouseEvent e){
      TableItem[] tableItems=table.getSelection();
      TreeItem[] treeItems=tree.getSelection();
      if (treeItems.length > 0) {
        for (        TreeItem treeItem : treeItems[0].getItems()) {
          String treeText=treeItem.getText();
          String tableText=tableItems[0].getText(0);
          String type=tableItems[0].getText(1);
          if (treeText.equals(tableText)) {
            if (type.equals(NodeType.DATABASE.toString()) || type.equals(NodeType.CONTAINER.toString()))             dbContainerItemSelected(treeItem,false);
 else             if (type.equals(NodeType.SERVER.toString()))             serverItemSelected(treeItem,false);
            break;
          }
        }
      }
    }
    @Override public void mouseDown(    MouseEvent e){
    }
  }
);
  table.setHeaderVisible(true);
  tblclmnName=new TableColumn(table,SWT.NONE);
  tblclmnName.setWidth(100);
  tblclmnName.setText(COL_NAME);
  tblclmnName.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      columnSelected(tblclmnName,COL_NAME,OrderBy.NAME);
      tblclmnType.setText(COL_TYPE);
      tblclmnSize.setText(COL_SIZE);
    }
  }
);
  tblclmnType=new TableColumn(table,SWT.NONE);
  tblclmnType.setWidth(100);
  tblclmnType.setText(COL_TYPE);
  tblclmnType.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      columnSelected(tblclmnType,COL_TYPE,OrderBy.TYPE);
      tblclmnName.setText(COL_NAME);
      tblclmnSize.setText(COL_SIZE);
    }
  }
);
  tblclmnSize=new TableColumn(table,SWT.NONE);
  tblclmnSize.setWidth(100);
  tblclmnSize.setText(COL_SIZE);
  tblclmnSize.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      columnSelected(tblclmnSize,COL_SIZE,OrderBy.SIZE);
      tblclmnName.setText(COL_NAME);
      tblclmnType.setText(COL_TYPE);
    }
  }
);
}

Fixed version (ground truth):
private void initTable(SashForm sashForm_1){
  table=new Table(sashForm_1,SWT.BORDER | SWT.FULL_SELECTION);
  table.addMouseListener(new MouseAdapter(){
    @Override public void mouseDoubleClick(    MouseEvent e){
      TableItem[] tableItems=table.getSelection();
      TreeItem[] treeItems=tree.getSelection();
      if (treeItems.length > 0) {
        for (        TreeItem treeItem : treeItems[0].getItems()) {
          String treeText=treeItem.getText();
          String tableText=tableItems[0].getText(0);
          String type=tableItems[0].getText(1);
          if (treeText.equals(tableText)) {
            if (type.equals(NodeType.DATABASE.toString()) || type.equals(NodeType.CONTAINER.toString()))             dbContainerItemSelected(treeItem,false);
 else             if (type.equals(NodeType.SERVER.toString()))             serverItemSelected(treeItem,false);
            break;
          }
        }
      }
    }
  }
);
  table.setHeaderVisible(true);
  tblclmnName=new TableColumn(table,SWT.NONE);
  tblclmnName.setWidth(100);
  tblclmnName.setText(COL_NAME);
  tblclmnName.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      columnSelected(tblclmnName,COL_NAME,OrderBy.NAME);
      tblclmnType.setText(COL_TYPE);
      tblclmnSize.setText(COL_SIZE);
    }
  }
);
  tblclmnType=new TableColumn(table,SWT.NONE);
  tblclmnType.setWidth(100);
  tblclmnType.setText(COL_TYPE);
  tblclmnType.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      columnSelected(tblclmnType,COL_TYPE,OrderBy.TYPE);
      tblclmnName.setText(COL_NAME);
      tblclmnSize.setText(COL_SIZE);
    }
  }
);
  tblclmnSize=new TableColumn(table,SWT.NONE);
  tblclmnSize.setWidth(100);
  tblclmnSize.setText(COL_SIZE);
  tblclmnSize.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      columnSelected(tblclmnSize,COL_SIZE,OrderBy.SIZE);
      tblclmnName.setText(COL_NAME);
      tblclmnType.setText(COL_TYPE);
    }
  }
);
}