Program: 10861
Project: 10861
Buggy source:
public Control createPart(Composite parent){
  if (shell == null) {
    shell=parent.getShell();
  }
  Composite main=new Composite(parent,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(1).applyTo(main);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(main);
  Label commandDisplayName=new Label(main,SWT.NONE);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(commandDisplayName);
  commandDisplayName.setText("String_Node_Str");
  displayName=new Text(main,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(displayName);
  Label terminalLocationLabel=new Label(main,SWT.NONE);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(terminalLocationLabel);
  terminalLocationLabel.setText("String_Node_Str");
  terminalLocation=new Text(main,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(terminalLocation);
  final Button terminalButton=new Button(main,SWT.CHECK);
  int padding=20;
  GridDataFactory.fillDefaults().grab(false,false).indent(padding,SWT.DEFAULT).applyTo(terminalButton);
  terminalButton.setText("String_Node_Str");
  terminalButton.setSelection(applyTerminalToAllCommands);
  terminalButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      applyTerminalToAllCommands=terminalButton.getSelection();
    }
  }
);
  Label fileSelectionLabel=new Label(main,SWT.NONE);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(fileSelectionLabel);
  fileSelectionLabel.setText("String_Node_Str");
  locationField=new Text(main,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(locationField);
  Composite buttonArea=new Composite(main,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(1).applyTo(buttonArea);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(buttonArea);
  findApplicationButton=new Button(buttonArea,SWT.PUSH);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(findApplicationButton);
  findApplicationButton.setText("String_Node_Str");
  findApplicationButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      handleChange(event);
    }
  }
);
  displayName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      handleChange(event);
    }
  }
);
  locationField.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      handleChange(event);
    }
  }
);
  if (predefined != null && !predefined.isEmpty()) {
    Label templates=new Label(main,SWT.NONE);
    GridDataFactory.fillDefaults().grab(false,false).applyTo(templates);
    templates.setText("String_Node_Str");
    Composite predefinedArea=new Composite(main,SWT.NONE);
    GridLayoutFactory.fillDefaults().numColumns(1).applyTo(predefinedArea);
    GridDataFactory.fillDefaults().grab(false,false).applyTo(predefinedArea);
    predefinedCommands=new Combo(predefinedArea,SWT.BORDER | SWT.READ_ONLY);
    GridDataFactory.fillDefaults().grab(false,false).applyTo(predefinedCommands);
    predefinedCommands.setEnabled(true);
    predefinedCommands.addSelectionListener(new SelectionAdapter(){
      @Override public void widgetSelected(      SelectionEvent event){
        int selectionIndex=predefinedCommands.getSelectionIndex();
        if (selectionIndex != -1) {
          int predefIndex=selectionIndex - 1;
          ServiceCommand value=predefIndex >= 0 && predefIndex < predefined.size() ? predefined.get(predefIndex) : null;
          setPredefinedCommand(value);
        }
      }
    }
);
    predefinedCommands.add("String_Node_Str");
    for (    ServiceCommand option : predefined) {
      predefinedCommands.add(option.getExternalApplication().getDisplayName());
    }
    predefinedCommands.select(0);
  }
  Text argsLabel=new Text(main,SWT.MULTI);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(argsLabel);
  argsLabel.setText("String_Node_Str");
  argsLabel.setBackground(main.getBackground());
  options=new Text(main,SWT.MULTI | SWT.WRAP | SWT.BORDER);
  options.addTraverseListener(new TraverseListener(){
    public void keyTraversed(    TraverseEvent event){
      if (event.detail == SWT.TRAVERSE_RETURN && (event.stateMask & SWT.MODIFIER_MASK) != 0) {
        event.doit=true;
      }
    }
  }
);
  options.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      handleChange(event);
    }
  }
);
  GridDataFactory.fillDefaults().grab(true,true).hint(30,IDialogConstants.ENTRY_FIELD_WIDTH).applyTo(options);
  Text optionsDescription=new Text(main,SWT.MULTI | SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,true).hint(30,IDialogConstants.ENTRY_FIELD_WIDTH).applyTo(optionsDescription);
  optionsDescription.setEditable(false);
  optionsDescription.setText(getOptionsDescription());
  optionsDescription.setBackground(main.getBackground());
  readValues();
  return main;
}

Fixed version (ground truth):
public Control createPart(Composite parent){
  if (shell == null) {
    shell=parent.getShell();
  }
  Composite main=new Composite(parent,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(1).applyTo(main);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(main);
  Label commandDisplayName=new Label(main,SWT.NONE);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(commandDisplayName);
  commandDisplayName.setText("String_Node_Str");
  displayName=new Text(main,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(displayName);
  displayName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      handleChange(event);
    }
  }
);
  Label terminalLocationLabel=new Label(main,SWT.NONE);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(terminalLocationLabel);
  terminalLocationLabel.setText("String_Node_Str");
  terminalLocation=new Text(main,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(terminalLocation);
  terminalLocation.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      handleChange(event);
    }
  }
);
  final Button terminalButton=new Button(main,SWT.CHECK);
  int padding=20;
  GridDataFactory.fillDefaults().grab(false,false).indent(padding,SWT.DEFAULT).applyTo(terminalButton);
  terminalButton.setText("String_Node_Str");
  terminalButton.setSelection(applyTerminalToAllCommands);
  terminalButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      applyTerminalToAllCommands=terminalButton.getSelection();
    }
  }
);
  Label fileSelectionLabel=new Label(main,SWT.NONE);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(fileSelectionLabel);
  fileSelectionLabel.setText("String_Node_Str");
  locationField=new Text(main,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(locationField);
  Composite buttonArea=new Composite(main,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(1).applyTo(buttonArea);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(buttonArea);
  locationField.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      handleChange(event);
    }
  }
);
  findApplicationButton=new Button(buttonArea,SWT.PUSH);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(findApplicationButton);
  findApplicationButton.setText("String_Node_Str");
  findApplicationButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      handleChange(event);
    }
  }
);
  if (predefined != null && !predefined.isEmpty()) {
    Label templates=new Label(main,SWT.NONE);
    GridDataFactory.fillDefaults().grab(false,false).applyTo(templates);
    templates.setText("String_Node_Str");
    Composite predefinedArea=new Composite(main,SWT.NONE);
    GridLayoutFactory.fillDefaults().numColumns(1).applyTo(predefinedArea);
    GridDataFactory.fillDefaults().grab(false,false).applyTo(predefinedArea);
    predefinedCommands=new Combo(predefinedArea,SWT.BORDER | SWT.READ_ONLY);
    GridDataFactory.fillDefaults().grab(false,false).applyTo(predefinedCommands);
    predefinedCommands.setEnabled(true);
    predefinedCommands.addSelectionListener(new SelectionAdapter(){
      @Override public void widgetSelected(      SelectionEvent event){
        int selectionIndex=predefinedCommands.getSelectionIndex();
        if (selectionIndex != -1) {
          int predefIndex=selectionIndex - 1;
          ServiceCommand value=predefIndex >= 0 && predefIndex < predefined.size() ? predefined.get(predefIndex) : null;
          setPredefinedCommand(value);
        }
      }
    }
);
    predefinedCommands.add("String_Node_Str");
    for (    ServiceCommand option : predefined) {
      predefinedCommands.add(option.getExternalApplication().getDisplayName());
    }
    predefinedCommands.select(0);
  }
  Text argsLabel=new Text(main,SWT.MULTI);
  GridDataFactory.fillDefaults().grab(false,false).applyTo(argsLabel);
  argsLabel.setText("String_Node_Str");
  argsLabel.setBackground(main.getBackground());
  options=new Text(main,SWT.MULTI | SWT.WRAP | SWT.BORDER);
  options.addTraverseListener(new TraverseListener(){
    public void keyTraversed(    TraverseEvent event){
      if (event.detail == SWT.TRAVERSE_RETURN && (event.stateMask & SWT.MODIFIER_MASK) != 0) {
        event.doit=true;
      }
    }
  }
);
  options.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      handleChange(event);
    }
  }
);
  GridDataFactory.fillDefaults().grab(true,true).hint(30,IDialogConstants.ENTRY_FIELD_WIDTH).applyTo(options);
  Text optionsDescription=new Text(main,SWT.MULTI | SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,true).hint(30,IDialogConstants.ENTRY_FIELD_WIDTH).applyTo(optionsDescription);
  optionsDescription.setEditable(false);
  optionsDescription.setText(getOptionsDescription());
  optionsDescription.setBackground(main.getBackground());
  readValues();
  return main;
}