Program: 96479
Project: 96479
Buggy source:
@Override protected void createBundleContent(Composite parent){
  mform=new ManagedForm(parent);
  setManagedForm(mform);
  sform=mform.getForm();
  FormToolkit toolkit=mform.getToolkit();
  sform.setText("String_Node_Str");
  sform.setImage(ServerUICore.getLabelProvider().getImage(getServer()));
  sform.setExpandHorizontal(true);
  sform.setExpandVertical(true);
  toolkit.decorateFormHeading(sform.getForm());
  Composite body=sform.getBody();
  GridLayout layout=new GridLayout(1,false);
  layout.marginLeft=6;
  layout.marginTop=6;
  layout.marginRight=6;
  body.setLayout(layout);
  Section manifestSection=toolkit.createSection(sform.getBody(),ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
  manifestSection.setText("String_Node_Str");
  manifestSection.setDescription("String_Node_Str");
  layout=new GridLayout();
  manifestSection.setLayout(layout);
  manifestSection.setLayoutData(new GridData(GridData.FILL_BOTH));
  Composite manifestComposite=toolkit.createComposite(manifestSection);
  layout=new GridLayout();
  layout.marginLeft=6;
  layout.marginTop=6;
  layout.numColumns=3;
  manifestComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  manifestComposite.setLayout(layout);
  manifestSection.setClient(manifestComposite);
  Label commandLabel=toolkit.createLabel(manifestComposite,"String_Node_Str");
  commandLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
  GridDataFactory.fillDefaults().grab(true,false).span(3,1).applyTo(commandLabel);
  commandText=toolkit.createText(manifestComposite,"String_Node_Str",SWT.CANCEL | SWT.SEARCH);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(commandText);
  commandText.addKeyListener(new KeyListener(){
    public void keyPressed(    KeyEvent e){
      if (e.character == SWT.CR || e.character == SWT.LF) {
        history.add(commandText.getText());
        String cmdLine=commandText.getText();
        executeCommand(cmdLine);
      }
 else       if (e.keyCode == SWT.ARROW_UP) {
        String command=history.back();
        commandText.setText(command);
        commandText.setSelection(command.length());
        e.doit=false;
      }
 else       if (e.keyCode == SWT.ARROW_DOWN) {
        String command=history.forward();
        commandText.setText(command);
        commandText.setSelection(command.length());
        e.doit=false;
      }
    }
    public void keyReleased(    KeyEvent e){
    }
  }
);
  Button commandButton=toolkit.createButton(manifestComposite,"String_Node_Str",SWT.PUSH);
  commandButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      history.add(commandText.getText());
      String cmdLine=commandText.getText();
      executeCommand(cmdLine);
    }
  }
);
  Button clearButton=toolkit.createButton(manifestComposite,"String_Node_Str",SWT.PUSH);
  clearButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      manifestText.setText("String_Node_Str");
    }
  }
);
  manifestText=new StyledText(manifestComposite,SWT.BORDER | SWT.MULTI | SWT.H_SCROLL| SWT.V_SCROLL);
  manifestText.setWordWrap(false);
  manifestText.setFont(JFaceResources.getTextFont());
  GridData data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=3;
  manifestText.setLayoutData(data);
  Label helpLabel=toolkit.createLabel(manifestComposite,"String_Node_Str");
  GridDataFactory.fillDefaults().grab(true,false).span(3,1).applyTo(helpLabel);
  toolBarManager=sform.getToolBarManager();
  backAction=new Action("String_Node_Str"){
    @Override public void run(){
      commandText.setText(history.back());
      String cmdLine=commandText.getText();
      executeCommand(cmdLine);
    }
  }
;
  backAction.setImageDescriptor(ImageResource.getImageDescriptor(org.eclipse.ui.internal.browser.ImageResource.IMG_ELCL_NAV_BACKWARD));
  backAction.setHoverImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_CLCL_NAV_BACKWARD));
  backAction.setDisabledImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_DLCL_NAV_BACKWARD));
  backAction.setEnabled(false);
  toolBarManager.add(backAction);
  forwardAction=new Action("String_Node_Str"){
    @Override public void run(){
      commandText.setText(history.forward());
      String cmdLine=commandText.getText();
      executeCommand(cmdLine);
    }
  }
;
  forwardAction.setImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_ELCL_NAV_FORWARD));
  forwardAction.setHoverImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_CLCL_NAV_FORWARD));
  forwardAction.setDisabledImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_DLCL_NAV_FORWARD));
  forwardAction.setEnabled(false);
  toolBarManager.add(forwardAction);
  refreshAction=new Action("String_Node_Str",ImageResource.getImageDescriptor(ImageResource.IMG_ELCL_NAV_REFRESH)){
    @Override public void run(){
      String cmdLine=history.current();
      if (cmdLine != null) {
        executeCommand(cmdLine);
      }
    }
  }
;
  toolBarManager.add(refreshAction);
  sform.updateToolBar();
}

Fixed version (ground truth):
@Override protected void createBundleContent(Composite parent){
  mform=new ManagedForm(parent);
  setManagedForm(mform);
  sform=mform.getForm();
  FormToolkit toolkit=mform.getToolkit();
  sform.setText("String_Node_Str");
  sform.setImage(ServerUICore.getLabelProvider().getImage(getServer()));
  sform.setExpandHorizontal(true);
  sform.setExpandVertical(true);
  toolkit.decorateFormHeading(sform.getForm());
  Composite body=sform.getBody();
  GridLayout layout=new GridLayout(1,false);
  layout.marginLeft=6;
  layout.marginTop=6;
  layout.marginRight=6;
  body.setLayout(layout);
  Section manifestSection=toolkit.createSection(sform.getBody(),ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
  manifestSection.setText("String_Node_Str");
  manifestSection.setDescription("String_Node_Str");
  layout=new GridLayout();
  manifestSection.setLayout(layout);
  manifestSection.setLayoutData(new GridData(GridData.FILL_BOTH));
  Composite manifestComposite=toolkit.createComposite(manifestSection);
  layout=new GridLayout();
  layout.marginLeft=6;
  layout.marginTop=6;
  layout.numColumns=3;
  manifestComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  manifestComposite.setLayout(layout);
  manifestSection.setClient(manifestComposite);
  Label commandLabel=toolkit.createLabel(manifestComposite,"String_Node_Str");
  commandLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
  GridDataFactory.fillDefaults().grab(true,false).span(3,1).applyTo(commandLabel);
  commandText=toolkit.createText(manifestComposite,"String_Node_Str",SWT.CANCEL | SWT.SEARCH);
  GridDataFactory.fillDefaults().grab(true,false).applyTo(commandText);
  commandText.addKeyListener(new KeyAdapter(){
    public void keyPressed(    KeyEvent e){
      if (e.character == SWT.CR || e.character == SWT.LF) {
        history.add(commandText.getText());
        String cmdLine=commandText.getText();
        executeCommand(cmdLine);
      }
 else       if (e.keyCode == SWT.ARROW_UP) {
        String command=history.back();
        commandText.setText(command);
        commandText.setSelection(command.length());
        e.doit=false;
      }
 else       if (e.keyCode == SWT.ARROW_DOWN) {
        String command=history.forward();
        commandText.setText(command);
        commandText.setSelection(command.length());
        e.doit=false;
      }
    }
  }
);
  Button commandButton=toolkit.createButton(manifestComposite,"String_Node_Str",SWT.PUSH);
  commandButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      history.add(commandText.getText());
      String cmdLine=commandText.getText();
      executeCommand(cmdLine);
    }
  }
);
  Button clearButton=toolkit.createButton(manifestComposite,"String_Node_Str",SWT.PUSH);
  clearButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      manifestText.setText("String_Node_Str");
    }
  }
);
  manifestText=new StyledText(manifestComposite,SWT.BORDER | SWT.MULTI | SWT.H_SCROLL| SWT.V_SCROLL);
  manifestText.setWordWrap(false);
  manifestText.setFont(JFaceResources.getTextFont());
  GridData data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=3;
  manifestText.setLayoutData(data);
  Label helpLabel=toolkit.createLabel(manifestComposite,"String_Node_Str");
  GridDataFactory.fillDefaults().grab(true,false).span(3,1).applyTo(helpLabel);
  toolBarManager=sform.getToolBarManager();
  backAction=new Action("String_Node_Str"){
    @Override public void run(){
      commandText.setText(history.back());
      String cmdLine=commandText.getText();
      executeCommand(cmdLine);
    }
  }
;
  backAction.setImageDescriptor(ImageResource.getImageDescriptor(org.eclipse.ui.internal.browser.ImageResource.IMG_ELCL_NAV_BACKWARD));
  backAction.setHoverImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_CLCL_NAV_BACKWARD));
  backAction.setDisabledImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_DLCL_NAV_BACKWARD));
  backAction.setEnabled(false);
  toolBarManager.add(backAction);
  forwardAction=new Action("String_Node_Str"){
    @Override public void run(){
      commandText.setText(history.forward());
      String cmdLine=commandText.getText();
      executeCommand(cmdLine);
    }
  }
;
  forwardAction.setImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_ELCL_NAV_FORWARD));
  forwardAction.setHoverImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_CLCL_NAV_FORWARD));
  forwardAction.setDisabledImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_DLCL_NAV_FORWARD));
  forwardAction.setEnabled(false);
  toolBarManager.add(forwardAction);
  refreshAction=new Action("String_Node_Str",ImageResource.getImageDescriptor(ImageResource.IMG_ELCL_NAV_REFRESH)){
    @Override public void run(){
      String cmdLine=history.current();
      if (cmdLine != null) {
        executeCommand(cmdLine);
      }
    }
  }
;
  toolBarManager.add(refreshAction);
  sform.updateToolBar();
}