Program: 109156
Project: 109156
Buggy source:
private void createContent(final Shell parent){
  Composite c1=new Composite(parent,SWT.BORDER);
  c1.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  c1.setLayout(new GridLayout(3,false));
  Label urlLabel=new Label(c1,SWT.NONE);
  urlLabel.setText("String_Node_Str");
  urlText=new Text(c1,SWT.BORDER);
  urlText.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  urlText.addKeyListener(new KeyAdapter(){
    @Override public void keyReleased(    KeyEvent e){
      if (!urlText.getText().isEmpty()) {
        downloadButton.setEnabled(true);
      }
 else {
        downloadButton.setEnabled(false);
      }
      parent.pack();
    }
  }
);
  toMP3Checkbox=new Button(c1,SWT.CHECK);
  toMP3Checkbox.setText("String_Node_Str");
  toMP3Checkbox.setSelection(Settings.toMP3());
  toMP3Checkbox.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        Settings.setToMP3(toMP3Checkbox.getSelection());
      }
 catch (      Exception ex) {
        MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
        mb.setText("String_Node_Str");
        mb.setMessage(ex.getMessage());
        mb.open();
      }
    }
  }
);
  Label folderLabel=new Label(c1,SWT.NONE);
  folderLabel.setText("String_Node_Str");
  folderText=new Text(c1,SWT.BORDER);
  folderText.setEditable(false);
  folderText.setText(Settings.getDirectory().getAbsolutePath());
  folderText.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  openButton=new Button(c1,SWT.PUSH);
  openButton.setText("String_Node_Str");
  final DirectoryDialog directoryDialog=new DirectoryDialog(parent,SWT.OPEN);
  openButton.addMouseListener(new MouseAdapter(){
    @Override public void mouseDown(    MouseEvent e){
      String directory=directoryDialog.open();
      if (directory != null) {
        folderText.setText(directory);
        Settings.setDirectory(new File(directory));
        parent.pack();
      }
    }
  }
);
  downloadButton=new Button(c1,SWT.PUSH);
  downloadButton.setEnabled(false);
  GridData gridData=new GridData(SWT.NONE,SWT.NONE,false,false);
  gridData.horizontalSpan=3;
  downloadButton.setLayoutData(gridData);
  downloadButton.setText("String_Node_Str");
  downloadButton.addMouseListener(new MouseAdapter(){
    @Override public void mouseDown(    MouseEvent e){
      try {
        if (!folderText.getText().startsWith("String_Node_Str") && !folderText.getText().startsWith("String_Node_Str")) {
          MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
          mb.setText("String_Node_Str");
          mb.setMessage("String_Node_Str");
          mb.open();
          return;
        }
        YouTubeDownloader.download(folderText.getText(),urlText.getText().trim(),toMP3Checkbox.getSelection());
      }
 catch (      Exception ex) {
        MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
        mb.setText("String_Node_Str");
        mb.setMessage(ex.getMessage());
        mb.open();
      }
    }
  }
);
  Composite c2=new Composite(parent,SWT.BORDER);
  c2.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  c2.setLayout(new GridLayout(2,false));
  updateButton=new Button(c2,SWT.PUSH);
  updateButton.setText("String_Node_Str");
  updateButton.addMouseListener(new MouseAdapter(){
    @Override public void mouseDown(    MouseEvent e){
      try {
        YouTubeDownloader.update();
      }
 catch (      Exception ex) {
        MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
        mb.setText("String_Node_Str");
        mb.setMessage(ex.getMessage());
        mb.open();
      }
    }
  }
);
  Label authorLabel=new Label(c2,SWT.NONE);
  authorLabel.setLayoutData(new GridData(SWT.NONE,SWT.CENTER,false,false));
  authorLabel.setText("String_Node_Str");
}

Fixed version (ground truth):
private void createContent(final Shell parent){
  Composite c1=new Composite(parent,SWT.BORDER);
  c1.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  c1.setLayout(new GridLayout(3,false));
  Label urlLabel=new Label(c1,SWT.NONE);
  urlLabel.setText("String_Node_Str");
  urlText=new Text(c1,SWT.BORDER);
  urlText.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  urlText.addKeyListener(new KeyAdapter(){
    @Override public void keyReleased(    KeyEvent e){
      if (!urlText.getText().isEmpty()) {
        downloadButton.setEnabled(true);
      }
 else {
        downloadButton.setEnabled(false);
      }
      parent.pack();
    }
  }
);
  toMP3Checkbox=new Button(c1,SWT.CHECK);
  toMP3Checkbox.setText("String_Node_Str");
  toMP3Checkbox.setSelection(Settings.toMP3());
  toMP3Checkbox.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        Settings.setToMP3(toMP3Checkbox.getSelection());
      }
 catch (      Exception ex) {
        MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
        mb.setText("String_Node_Str");
        mb.setMessage(ex.getMessage());
        mb.open();
      }
    }
  }
);
  Label folderLabel=new Label(c1,SWT.NONE);
  folderLabel.setText("String_Node_Str");
  folderText=new Text(c1,SWT.BORDER);
  folderText.setEditable(false);
  folderText.setText(Settings.getDirectory().getAbsolutePath());
  folderText.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  openButton=new Button(c1,SWT.PUSH);
  openButton.setText("String_Node_Str");
  final DirectoryDialog directoryDialog=new DirectoryDialog(parent,SWT.OPEN);
  openButton.addMouseListener(new MouseAdapter(){
    @Override public void mouseDown(    MouseEvent e){
      String directory=directoryDialog.open();
      if (directory != null) {
        folderText.setText(directory);
        Settings.setDirectory(new File(directory));
        parent.pack();
      }
    }
  }
);
  downloadButton=new Button(c1,SWT.PUSH);
  downloadButton.setEnabled(false);
  GridData gridData=new GridData(SWT.NONE,SWT.NONE,false,false);
  gridData.horizontalSpan=3;
  downloadButton.setLayoutData(gridData);
  downloadButton.setText("String_Node_Str");
  downloadButton.addMouseListener(new MouseAdapter(){
    @Override public void mouseDown(    MouseEvent e){
      try {
        if (!urlText.getText().startsWith("String_Node_Str") && !urlText.getText().startsWith("String_Node_Str")) {
          MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
          mb.setText("String_Node_Str");
          mb.setMessage("String_Node_Str");
          mb.open();
          return;
        }
        YouTubeDownloader.download(folderText.getText(),urlText.getText().trim(),toMP3Checkbox.getSelection());
      }
 catch (      Exception ex) {
        MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
        mb.setText("String_Node_Str");
        mb.setMessage(ex.getMessage());
        mb.open();
      }
    }
  }
);
  Composite c2=new Composite(parent,SWT.BORDER);
  c2.setLayoutData(new GridData(SWT.FILL,SWT.NONE,true,false));
  c2.setLayout(new GridLayout(2,false));
  updateButton=new Button(c2,SWT.PUSH);
  updateButton.setText("String_Node_Str");
  updateButton.addMouseListener(new MouseAdapter(){
    @Override public void mouseDown(    MouseEvent e){
      try {
        YouTubeDownloader.update();
      }
 catch (      Exception ex) {
        MessageBox mb=new MessageBox(parent,SWT.ICON_ERROR);
        mb.setText("String_Node_Str");
        mb.setMessage(ex.getMessage());
        mb.open();
      }
    }
  }
);
  Label authorLabel=new Label(c2,SWT.NONE);
  authorLabel.setLayoutData(new GridData(SWT.NONE,SWT.CENTER,false,false));
  authorLabel.setText("String_Node_Str");
}