Program: 139760
Project: 139760
Buggy source:
public void createControl(Composite parent){
  Composite container=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  GridData gridData=new GridData(GridData.FILL_BOTH);
  container.setLayout(layout);
  container.setLayoutData(gridData);
  Composite fileComp=new Composite(container,SWT.NONE);
  layout=new GridLayout(3,false);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  fileComp.setLayout(layout);
  fileComp.setLayoutData(gridData);
  Label label=new Label(fileComp,SWT.NONE);
  if (isForExchange) {
    label.setText("String_Node_Str");
  }
 else {
    label.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  }
  fileText=new Text(fileComp,SWT.BORDER);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  fileText.setLayoutData(gridData);
  Button button=new Button(fileComp,SWT.PUSH);
  button.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      String path="String_Node_Str";
      if (isForExchange) {
        DirectoryDialog dialog=new DirectoryDialog(Display.getDefault().getActiveShell());
        if (fileText.getText() != null) {
          dialog.setFilterPath(fileText.getText());
        }
        path=dialog.open();
      }
 else {
        FileDialog dialog=new FileDialog(Display.getDefault().getActiveShell());
        dialog.setFilterExtensions(new String[]{"String_Node_Str"});
        if (fileText.getText() != null) {
          dialog.setFileName(fileText.getText());
        }
        path=dialog.open();
        if (path != null && !path.endsWith("String_Node_Str")) {
          path=path + "String_Node_Str";
        }
      }
      if (path != null) {
        fileText.setText(path);
      }
    }
  }
);
  Group group=new Group(container,SWT.NONE);
  group.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  group.setLayout(new GridLayout());
  group.setLayoutData(new GridData(GridData.FILL_BOTH));
  selectedPatternsTree=new ContainerCheckedTreeViewer(group);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(selectedPatternsTree.getTree());
  selectedPatternsTree.setLabelProvider(new ResourceViewLabelProvider());
  selectedPatternsTree.setContentProvider(new WorkbenchContentProvider(){
    @Override public boolean hasChildren(    Object element){
      if (element instanceof IFile) {
        return false;
      }
      return super.hasChildren(element);
    }
  }
);
  selectedPatternsTree.setInput(this.folder);
  try {
    selectedPatternsTree.setCheckedElements(folder.members());
  }
 catch (  CoreException e1) {
    log.error(e1,e1);
  }
  Control buttonComposite=createSelectionButtons(container);
  Composite monitorComp=new Composite(container,SWT.NONE);
  monitorComp.setLayout(new GridLayout());
  monitorComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  ProgressBar bar=new ProgressBar(monitorComp,SWT.NONE);
  bar.setLayoutData(new GridData(GridData.FILL_BOTH));
  bar.setVisible(false);
  setControl(container);
}

Fixed version (ground truth):
public void createControl(Composite parent){
  Composite container=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  GridData gridData=new GridData(GridData.FILL_BOTH);
  container.setLayout(layout);
  container.setLayoutData(gridData);
  Composite fileComp=new Composite(container,SWT.NONE);
  layout=new GridLayout(3,false);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  fileComp.setLayout(layout);
  fileComp.setLayoutData(gridData);
  Label label=new Label(fileComp,SWT.NONE);
  if (isForExchange) {
    label.setText("String_Node_Str");
  }
 else {
    label.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  }
  fileText=new Text(fileComp,SWT.BORDER);
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  fileText.setLayoutData(gridData);
  fileText.setEditable(false);
  Button button=new Button(fileComp,SWT.PUSH);
  button.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      String path="String_Node_Str";
      if (isForExchange) {
        DirectoryDialog dialog=new DirectoryDialog(Display.getDefault().getActiveShell());
        if (fileText.getText() != null) {
          dialog.setFilterPath(fileText.getText());
        }
        path=dialog.open();
      }
 else {
        FileDialog dialog=new FileDialog(Display.getDefault().getActiveShell());
        dialog.setFilterExtensions(new String[]{"String_Node_Str"});
        if (fileText.getText() != null) {
          dialog.setFileName(fileText.getText());
        }
        path=dialog.open();
        if (path != null && !path.endsWith("String_Node_Str")) {
          path=path + "String_Node_Str";
        }
      }
      if (path != null) {
        fileText.setText(path);
      }
    }
  }
);
  Group group=new Group(container,SWT.NONE);
  group.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  group.setLayout(new GridLayout());
  group.setLayoutData(new GridData(GridData.FILL_BOTH));
  selectedPatternsTree=new ContainerCheckedTreeViewer(group);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(selectedPatternsTree.getTree());
  selectedPatternsTree.setLabelProvider(new ResourceViewLabelProvider());
  selectedPatternsTree.setContentProvider(new WorkbenchContentProvider(){
    @Override public boolean hasChildren(    Object element){
      if (element instanceof IFile) {
        return false;
      }
      return super.hasChildren(element);
    }
  }
);
  selectedPatternsTree.setInput(this.folder);
  try {
    selectedPatternsTree.setCheckedElements(folder.members());
  }
 catch (  CoreException e1) {
    log.error(e1,e1);
  }
  Control buttonComposite=createSelectionButtons(container);
  Composite monitorComp=new Composite(container,SWT.NONE);
  monitorComp.setLayout(new GridLayout());
  monitorComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  ProgressBar bar=new ProgressBar(monitorComp,SWT.NONE);
  bar.setLayoutData(new GridData(GridData.FILL_BOTH));
  bar.setVisible(false);
  setControl(container);
}