Program: 147991
Project: 147991
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(1,false));
    Composite statusComposite=toolkit.createComposite(composite,SWT.NONE);
    statusComposite.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
    statusComposite.setLayout(new GridLayout(5,false));
    Label descriptionLabel=toolkit.createLabel(statusComposite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    statusLabel=toolkit.createLabel(statusComposite,"String_Node_Str",SWT.NULL);
    statusLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    Button startButton=toolkit.createButton(statusComposite,"String_Node_Str",SWT.TOGGLE);
    startButton.setImage(ImageCache.getCreatedImage(EImage.RUN_EXC.getPath()));
    startButton.setToolTipText("String_Node_Str");
    startButton.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    startButton.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        startSubscriptionEngine();
      }
    }
);
    Button stopButton=toolkit.createButton(statusComposite,"String_Node_Str",SWT.TOGGLE);
    stopButton.setImage(ImageCache.getCreatedImage(EImage.STOP.getPath()));
    stopButton.setToolTipText("String_Node_Str");
    stopButton.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    stopButton.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        stopSubscriptionEngine();
      }
    }
);
    suspendButton=toolkit.createButton(statusComposite,"String_Node_Str",SWT.TOGGLE);
    suspendButton.setImage(ImageCache.getCreatedImage(EImage.SUSPEND.getPath()));
    suspendButton.setToolTipText("String_Node_Str");
    suspendButton.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    suspendButton.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        if (suspendButton.getSelection()) {
          suspendSubscriptionEngine();
        }
 else {
          resumeSubscriptionEngine();
        }
      }
    }
);
    Composite separator=toolkit.createCompositeSeparator(composite);
    separator.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
    ((GridData)separator.getLayoutData()).heightHint=2;
    Composite firstLineComposite=toolkit.createComposite(composite);
    firstLineComposite.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,1,1));
    firstLineComposite.setLayout(new GridLayout(9,false));
    Label routingOrdersLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    routingOrdersLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,9,1));
    final SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
    Label fromLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    fromLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    CalendarSelectWidget fromCalendar=new CalendarSelectWidget(toolkit,firstLineComposite,true);
    fromText=fromCalendar.getText();
    Label toLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    toLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    CalendarSelectWidget toCalendar=new CalendarSelectWidget(toolkit,firstLineComposite,false);
    toText=toCalendar.getText();
    Label statusLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    statusLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    statusCombo=new Combo(firstLineComposite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.MULTI);
    statusCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    statusCombo.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    statusCombo.add("String_Node_Str");
    statusCombo.add("String_Node_Str");
    statusCombo.add("String_Node_Str");
    statusCombo.select(0);
    Button bSearch=toolkit.createButton(firstLineComposite,"String_Node_Str",SWT.CENTER);
    bSearch.setImage(ImageCache.getCreatedImage(EImage.BROWSE.getPath()));
    bSearch.setToolTipText("String_Node_Str");
    bSearch.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    bSearch.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
      }
    }
);
    Composite searchLineComposite=toolkit.createComposite(composite);
    searchLineComposite.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,false,1,1));
    searchLineComposite.setLayout(new GridLayout(4,false));
    Label documentTypeLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    documentTypeLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    documentTypeText=toolkit.createText(searchLineComposite,"String_Node_Str",SWT.BORDER);
    documentTypeText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,false,1,1));
    ((GridData)documentTypeText.getLayoutData()).widthHint=120;
    documentTypeText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    Label idLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    idLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    idText=toolkit.createText(searchLineComposite,"String_Node_Str",SWT.BORDER);
    idText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,1,1));
    idText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    Label serviceLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    serviceLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    serviceCombo=new Combo(searchLineComposite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.MULTI);
    serviceCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    serviceCombo.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    serviceCombo.add("String_Node_Str");
    WSServicesListItem[] servicesList=Util.getPort(getXObject()).getServicesList(new WSGetServicesList("String_Node_Str")).getItem();
    if ((servicesList != null) && (servicesList.length > 0)) {
      String[] services=new String[servicesList.length];
      for (int i=0; i < servicesList.length; i++) {
        services[i]=servicesList[i].getJndiName().replaceFirst("String_Node_Str","String_Node_Str");
      }
      Arrays.sort(services);
      for (int i=0; i < services.length; i++) {
        serviceCombo.add(services[i]);
      }
    }
    serviceCombo.select(0);
    Label anyFieldLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    anyFieldLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    anyFieldText=toolkit.createText(searchLineComposite,"String_Node_Str",SWT.BORDER);
    anyFieldText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,1,1));
    anyFieldText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    final Table table=createTable(composite);
    resultsViewer=new TableViewer(table);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new ClusterTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        try {
          new EditItemAction(RoutingEngineV2BrowserMainPage.this.getSite().getShell(),resultsViewer).run();
        }
 catch (        Exception e) {
          MessageDialog.openError(RoutingEngineV2BrowserMainPage.this.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage());
        }
      }
    }
);
    hookContextMenu();
    managedForm.reflow(true);
    WidgetFactory factory=WidgetFactory.getWidgetFactory();
    factory.adapt(managedForm.getForm().getBody());
  }
 catch (  Exception e) {
    log.error(e.getMessage(),e);
  }
}

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(1,false));
    Composite statusComposite=toolkit.createComposite(composite,SWT.NONE);
    statusComposite.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
    statusComposite.setLayout(new GridLayout(5,false));
    Label descriptionLabel=toolkit.createLabel(statusComposite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    statusLabel=toolkit.createLabel(statusComposite,"String_Node_Str",SWT.NULL);
    statusLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    Button startButton=toolkit.createButton(statusComposite,"String_Node_Str",SWT.TOGGLE);
    startButton.setImage(ImageCache.getCreatedImage(EImage.RUN_EXC.getPath()));
    startButton.setToolTipText("String_Node_Str");
    startButton.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    startButton.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        startSubscriptionEngine();
      }
    }
);
    Button stopButton=toolkit.createButton(statusComposite,"String_Node_Str",SWT.TOGGLE);
    stopButton.setImage(ImageCache.getCreatedImage(EImage.STOP.getPath()));
    stopButton.setToolTipText("String_Node_Str");
    stopButton.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    stopButton.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        stopSubscriptionEngine();
      }
    }
);
    suspendButton=toolkit.createButton(statusComposite,"String_Node_Str",SWT.TOGGLE);
    suspendButton.setImage(ImageCache.getCreatedImage(EImage.SUSPEND.getPath()));
    suspendButton.setToolTipText("String_Node_Str");
    suspendButton.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    suspendButton.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        if (suspendButton.getSelection()) {
          suspendSubscriptionEngine();
        }
 else {
          resumeSubscriptionEngine();
        }
      }
    }
);
    Composite separator=toolkit.createCompositeSeparator(composite);
    separator.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
    ((GridData)separator.getLayoutData()).heightHint=2;
    Composite firstLineComposite=toolkit.createComposite(composite);
    firstLineComposite.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,1,1));
    firstLineComposite.setLayout(new GridLayout(9,false));
    Label routingOrdersLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    routingOrdersLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,9,1));
    final SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
    Label fromLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    fromLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    CalendarSelectWidget fromCalendar=new CalendarSelectWidget(toolkit,firstLineComposite,true);
    fromText=fromCalendar.getText();
    Label toLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    toLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    CalendarSelectWidget toCalendar=new CalendarSelectWidget(toolkit,firstLineComposite,false);
    toText=toCalendar.getText();
    Label statusLabel=toolkit.createLabel(firstLineComposite,"String_Node_Str",SWT.NULL);
    statusLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    statusCombo=new Combo(firstLineComposite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.MULTI);
    statusCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    statusCombo.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    statusCombo.add("String_Node_Str");
    statusCombo.add("String_Node_Str");
    statusCombo.add("String_Node_Str");
    statusCombo.select(0);
    Button bSearch=toolkit.createButton(firstLineComposite,"String_Node_Str",SWT.CENTER);
    bSearch.setImage(ImageCache.getCreatedImage(EImage.BROWSE.getPath()));
    bSearch.setToolTipText("String_Node_Str");
    bSearch.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    bSearch.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
      }
    }
);
    Composite searchLineComposite=toolkit.createComposite(composite);
    searchLineComposite.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,false,1,1));
    searchLineComposite.setLayout(new GridLayout(4,false));
    Label documentTypeLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    documentTypeLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    documentTypeText=toolkit.createText(searchLineComposite,"String_Node_Str",SWT.BORDER);
    documentTypeText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,false,1,1));
    ((GridData)documentTypeText.getLayoutData()).widthHint=120;
    documentTypeText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    Label idLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    idLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    idText=toolkit.createText(searchLineComposite,"String_Node_Str",SWT.BORDER);
    idText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,1,1));
    idText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    Label serviceLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    serviceLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    serviceCombo=new Combo(searchLineComposite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.MULTI);
    serviceCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    serviceCombo.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    serviceCombo.add("String_Node_Str");
    WSServicesListItem[] servicesList=getPort().getServicesList(new WSGetServicesList("String_Node_Str")).getItem();
    if ((servicesList != null) && (servicesList.length > 0)) {
      String[] services=new String[servicesList.length];
      for (int i=0; i < servicesList.length; i++) {
        services[i]=servicesList[i].getJndiName().replaceFirst("String_Node_Str","String_Node_Str");
      }
      Arrays.sort(services);
      for (int i=0; i < services.length; i++) {
        serviceCombo.add(services[i]);
      }
    }
    serviceCombo.select(0);
    Label anyFieldLabel=toolkit.createLabel(searchLineComposite,"String_Node_Str",SWT.NULL);
    anyFieldLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    anyFieldText=toolkit.createText(searchLineComposite,"String_Node_Str",SWT.BORDER);
    anyFieldText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,1,1));
    anyFieldText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          RoutingEngineV2BrowserMainPage.this.resultsViewer.setInput(getResults());
        }
      }
    }
);
    final Table table=createTable(composite);
    resultsViewer=new TableViewer(table);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new ClusterTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        try {
          new EditItemAction(RoutingEngineV2BrowserMainPage.this.getSite().getShell(),resultsViewer).run();
        }
 catch (        Exception e) {
          MessageDialog.openError(RoutingEngineV2BrowserMainPage.this.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage());
        }
      }
    }
);
    hookContextMenu();
    managedForm.reflow(true);
    WidgetFactory factory=WidgetFactory.getWidgetFactory();
    factory.adapt(managedForm.getForm().getBody());
  }
 catch (  Exception e) {
    log.error(e.getMessage(),e);
  }
}