Program: 146218
Project: 146218
Buggy source:
@Override protected void createFormContent(IManagedForm managedForm){
  try {
    managedForm.getForm().setText(this.getTitle());
    FormToolkit toolkit=managedForm.getToolkit();
    Composite composite=managedForm.getForm().getBody();
    composite.setLayout(new GridLayout(9,false));
    final SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
    Label fromLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    fromLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    fromText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    fromText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    ((GridData)fromText.getLayoutData()).widthHint=100;
    fromText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    Calendar c=Calendar.getInstance();
    long yesterday=c.getTimeInMillis() - (1000 * 60 * 60* 24);
    c.setTimeInMillis(yesterday);
    fromText.setText(sdf.format(c.getTime()));
    fromText.pack();
    Button bFrom=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER | SWT.ARROW | SWT.DOWN);
    bFrom.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        final CalendarDialog cal=new CalendarDialog(DataClusterBrowserMainPage.this.getSite().getShell());
        if (fromText.getText() != null && fromText.getText().length() > 0) {
          try {
            Date d=sdf.parse(fromText.getText());
            cal.setDate(d);
          }
 catch (          ParseException pe) {
          }
        }
        cal.addDateChangedListener(new SWTCalendarListener(){
          public void dateChanged(          SWTCalendarEvent calendarEvent){
            fromText.setText(sdf.format(calendarEvent.getCalendar().getTime()));
          }
        }
);
        cal.open();
      }
    }
);
    Label toLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    toLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    toText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    toText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    ((GridData)toText.getLayoutData()).widthHint=100;
    toText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    toText.addMouseListener(new MouseAdapter(){
      @Override public void mouseDown(      MouseEvent e){
        toText.selectAll();
      }
    }
);
    toText.setText("String_Node_Str");
    toText.pack();
    Button bTo=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER | SWT.ARROW | SWT.DOWN);
    bTo.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        final CalendarDialog cal=new CalendarDialog(DataClusterBrowserMainPage.this.getSite().getShell());
        if (toText.getText() != null && toText.getText().length() > 0) {
          try {
            Date d=sdf.parse(toText.getText());
            cal.setDate(d);
          }
 catch (          ParseException pe) {
          }
        }
        cal.addDateChangedListener(new SWTCalendarListener(){
          public void dateChanged(          SWTCalendarEvent calendarEvent){
            toText.setText(sdf.format(calendarEvent.getCalendar().getTime()));
          }
        }
);
        cal.open();
      }
    }
);
    Label conceptLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    conceptLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    conceptCombo=new Combo(composite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.SINGLE);
    conceptCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    ((GridData)conceptCombo.getLayoutData()).widthHint=180;
    conceptCombo.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    Button bSearch=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER);
    bSearch.setLayoutData(new GridData(SWT.NONE,SWT.CENTER,false,false,1,1));
    bSearch.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults());
      }
    }
);
    Label keyLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    keyLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    keyText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    keyText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,5,1));
    keyText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    Label descriptionLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    searchText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    searchText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,2,1));
    searchText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    final Table table=createTable(composite);
    resultsViewer=new TableViewer(table);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,9,1));
    ((GridData)resultsViewer.getControl().getLayoutData()).heightHint=500;
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new ClusterTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        try {
          new EditItemAction(DataClusterBrowserMainPage.this.getSite().getShell(),resultsViewer).run();
        }
 catch (        Exception e) {
          MessageDialog.openError(DataClusterBrowserMainPage.this.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage());
        }
      }
    }
);
    hookContextMenu();
    managedForm.reflow(true);
    searchText.setFocus();
    WidgetFactory factory=new WidgetFactory();
    factory.adapt(managedForm.getForm().getBody());
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void createFormContent(IManagedForm managedForm){
  try {
    managedForm.getForm().setText(this.getTitle());
    FormToolkit toolkit=managedForm.getToolkit();
    Composite composite=managedForm.getForm().getBody();
    composite.setLayout(new GridLayout(9,false));
    final SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
    Label fromLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    fromLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    fromText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    fromText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    ((GridData)fromText.getLayoutData()).widthHint=100;
    fromText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults(true));
        }
      }
    }
);
    Calendar c=Calendar.getInstance();
    long yesterday=c.getTimeInMillis() - (1000 * 60 * 60* 24);
    c.setTimeInMillis(yesterday);
    fromText.setText(sdf.format(c.getTime()));
    fromText.pack();
    Button bFrom=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER | SWT.ARROW | SWT.DOWN);
    bFrom.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        final CalendarDialog cal=new CalendarDialog(DataClusterBrowserMainPage.this.getSite().getShell());
        if (fromText.getText() != null && fromText.getText().length() > 0) {
          try {
            Date d=sdf.parse(fromText.getText());
            cal.setDate(d);
          }
 catch (          ParseException pe) {
          }
        }
        cal.addDateChangedListener(new SWTCalendarListener(){
          public void dateChanged(          SWTCalendarEvent calendarEvent){
            fromText.setText(sdf.format(calendarEvent.getCalendar().getTime()));
          }
        }
);
        cal.open();
      }
    }
);
    Label toLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    toLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    toText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    toText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    ((GridData)toText.getLayoutData()).widthHint=100;
    toText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults(true));
        }
      }
    }
);
    toText.addMouseListener(new MouseAdapter(){
      @Override public void mouseDown(      MouseEvent e){
        toText.selectAll();
      }
    }
);
    toText.setText("String_Node_Str");
    toText.pack();
    Button bTo=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER | SWT.ARROW | SWT.DOWN);
    bTo.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        final CalendarDialog cal=new CalendarDialog(DataClusterBrowserMainPage.this.getSite().getShell());
        if (toText.getText() != null && toText.getText().length() > 0) {
          try {
            Date d=sdf.parse(toText.getText());
            cal.setDate(d);
          }
 catch (          ParseException pe) {
          }
        }
        cal.addDateChangedListener(new SWTCalendarListener(){
          public void dateChanged(          SWTCalendarEvent calendarEvent){
            toText.setText(sdf.format(calendarEvent.getCalendar().getTime()));
          }
        }
);
        cal.open();
      }
    }
);
    Label conceptLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    conceptLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    conceptCombo=new Combo(composite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.SINGLE);
    conceptCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    ((GridData)conceptCombo.getLayoutData()).widthHint=180;
    conceptCombo.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults(true));
        }
      }
    }
);
    Button bSearch=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER);
    bSearch.setLayoutData(new GridData(SWT.NONE,SWT.CENTER,false,false,1,1));
    bSearch.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults(true));
      }
    }
);
    Label keyLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    keyLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    keyText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    keyText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,5,1));
    keyText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults(true));
        }
      }
    }
);
    Label descriptionLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    searchText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.SINGLE);
    searchText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,2,1));
    searchText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          DataClusterBrowserMainPage.this.resultsViewer.setInput(getResults(true));
        }
      }
    }
);
    final Table table=createTable(composite);
    resultsViewer=new TableViewer(table);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,9,1));
    ((GridData)resultsViewer.getControl().getLayoutData()).heightHint=500;
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new ClusterTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        try {
          new EditItemAction(DataClusterBrowserMainPage.this.getSite().getShell(),resultsViewer).run();
        }
 catch (        Exception e) {
          MessageDialog.openError(DataClusterBrowserMainPage.this.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage());
        }
      }
    }
);
    hookKeyboard();
    hookContextMenu();
    managedForm.reflow(true);
    searchText.setFocus();
    WidgetFactory factory=new WidgetFactory();
    factory.adapt(managedForm.getForm().getBody());
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}