Program: 142396
Project: 142396
Buggy source:
@PostConstruct public void createComposite(Composite parentComposite){
  parent=parentComposite;
  parent.setLayout(new GridLayout(2,false));
  txtOutput=createConsoleOut(parent);
  addConsoleOutMenu(txtOutput);
  slider=createSlider(parent);
  txtOutput.addMouseWheelListener(new MouseWheelListener(){
    @Override public void mouseScrolled(    MouseEvent e){
      int count=e.count;
      slider.setSelection(slider.getSelection() - count);
      buildNewConsoleContent();
    }
  }
);
  txtOutput.addKeyListener(new KeyListener(){
    @Override public void keyReleased(    KeyEvent e){
    }
    @Override public void keyPressed(    KeyEvent e){
      if (e.keyCode == SWT.ARROW_DOWN) {
        slider.setSelection(slider.getSelection() + 1);
      }
 else       if (e.keyCode == SWT.ARROW_UP) {
        slider.setSelection(slider.getSelection() - 1);
      }
      buildNewConsoleContent();
    }
  }
);
  parent.setLayout(new GridLayout(2,false));
  createConsoleIn(parent);
  lockScroller=new Button(parent,SWT.TOGGLE);
  lockScroller.setText("String_Node_Str");
  lockScroller.addListener(SWT.Selection,new Listener(){
    @Override public void handleEvent(    Event e){
      if (locked) {
        lockScroller.setText("String_Node_Str");
        locked=false;
      }
 else {
        lockScroller.setText("String_Node_Str");
        locked=true;
      }
    }
  }
);
  Activator.addLogListener();
  updateThread=createUpdateThread();
  updateThread.setDaemon(true);
  updateThread.start();
}

Fixed version (ground truth):
@PostConstruct public void createComposite(Composite parentComposite){
  parent=parentComposite;
  parent.setLayout(new GridLayout(2,false));
  txtOutput=createConsoleOut(parent);
  addConsoleOutMenu(txtOutput);
  slider=createSlider(parent);
  txtOutput.addMouseWheelListener(new MouseWheelListener(){
    @Override public void mouseScrolled(    MouseEvent e){
      int count=e.count;
      slider.setSelection(slider.getSelection() - count);
      buildNewConsoleContent();
    }
  }
);
  txtOutput.addKeyListener(new KeyListener(){
    @Override public void keyReleased(    KeyEvent e){
    }
    @Override public void keyPressed(    KeyEvent e){
      if (e.keyCode == SWT.ARROW_DOWN) {
        slider.setSelection(slider.getSelection() + 1);
      }
 else       if (e.keyCode == SWT.ARROW_UP) {
        slider.setSelection(slider.getSelection() - 1);
      }
      buildNewConsoleContent();
    }
  }
);
  txtOutput.addListener(SWT.Resize,new Listener(){
    public void handleEvent(    Event e){
      final LinkedListLogListener listener=Activator.getListLogListener();
      if (listener == null) {
        txtOutput.setText("String_Node_Str" + System.lineSeparator());
      }
 else {
        buildNewConsoleContent();
        showNewOutput();
      }
    }
  }
);
  parent.setLayout(new GridLayout(2,false));
  createConsoleIn(parent);
  lockScroller=new Button(parent,SWT.TOGGLE);
  lockScroller.setText("String_Node_Str");
  lockScroller.addListener(SWT.Selection,new Listener(){
    @Override public void handleEvent(    Event e){
      if (locked) {
        lockScroller.setText("String_Node_Str");
        locked=false;
      }
 else {
        lockScroller.setText("String_Node_Str");
        locked=true;
      }
    }
  }
);
  Activator.addLogListener();
  updateThread=createUpdateThread();
  updateThread.setDaemon(true);
  updateThread.start();
}