Program: 10884
Project: 10884
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).span(2,0).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).span(2,0).applyTo(terminalLocation);
  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) {
          setPredefinedCommand(predefined.get(selectionIndex));
        }
      }
    }
);
    for (    ServiceCommand option : predefined) {
      predefinedCommands.add(option.getExternalApplication().getDisplayName());
    }
  }
  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());
  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).span(2,0).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).span(2,0).applyTo(terminalLocation);
  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());
  readValues();
  return main;
}