Program: 133641
Project: 133641
Buggy source:
/** 
 * This operation sets up the Composite that contains the VisIt canvas and create the VisIt widget.
 */
@Override public void createPartControl(Composite parent){
  vizComposite=new Composite(parent,SWT.FILL);
  vizComposite.setLayout(new FillLayout());
  if (getEditorInput() != null && getEditorInput() instanceof VisitEditorInput) {
    vizWidget=new VisItSwtWidget(vizComposite,SWT.BORDER | SWT.DOUBLE_BUFFERED);
    mouseManager=new VisitMouseManager(vizWidget);
    vizWidget.addMouseWheelListener(new MouseWheelListener(){
      @Override public void mouseScrolled(      MouseEvent e){
        String direction=(e.count > 0) ? "String_Node_Str" : "String_Node_Str";
        vizWidget.zoom(direction);
      }
    }
);
    vizWidget.addMouseMoveListener(new MouseMoveListener(){
      @Override public void mouseMove(      MouseEvent e){
        if (mousePressed) {
          mouseManager.enqueueMouseLocation(e.x,e.y);
        }
      }
    }
);
    vizWidget.addMouseListener(new MouseListener(){
      @Override public void mouseUp(      MouseEvent e){
        mousePressed=false;
        mouseManager.stop();
      }
      @Override public void mouseDown(      MouseEvent e){
        mousePressed=true;
        mouseManager.start(e.x,e.y,(e.stateMask & SWT.CTRL) != 0,(e.stateMask & SWT.SHIFT) != 0);
      }
      @Override public void mouseDoubleClick(      MouseEvent e){
      }
    }
);
    vizWidget.addDisposeListener(new DisposeListener(){
      @Override public void widgetDisposed(      DisposeEvent e){
      }
    }
);
    HashMap<String,String> inputMap=((VisitEditorInput)getEditorInput()).getInputMap();
    VisItSwtConnection conn=null;
    String key=inputMap.get("String_Node_Str");
    if (VisItSwtConnectionManager.hasConnection(key)) {
      conn=VisItSwtConnectionManager.getConnection(key);
    }
 else {
      conn=VisItSwtConnectionManager.createConnection(key,new Shell(Display.getDefault()),inputMap);
    }
    boolean result=(conn != null);
    boolean isRemote=Boolean.valueOf(inputMap.get("String_Node_Str"));
    if (!result) {
      if (isRemote) {
        MessageDialog.openError(parent.getShell(),"String_Node_Str","String_Node_Str");
      }
 else {
        MessageDialog.openError(parent.getShell(),"String_Node_Str","String_Node_Str");
      }
    }
    if (result) {
      try {
        int windowId=Integer.parseInt(inputMap.get("String_Node_Str"));
        int windowWidth=Integer.parseInt(inputMap.get("String_Node_Str"));
        int windowHeight=Integer.parseInt(inputMap.get("String_Node_Str"));
        vizWidget.setVisItSwtConnection(conn,windowId,windowWidth,windowHeight);
      }
 catch (      Exception e) {
        MessageDialog.openError(parent.getShell(),"String_Node_Str",e.getMessage());
      }
    }
  }
 else {
    Text errText=new Text(vizComposite,SWT.NONE);
    errText.setText("String_Node_Str");
  }
  return;
}

Fixed version (ground truth):
/** 
 * This operation sets up the Composite that contains the VisIt canvas and create the VisIt widget.
 */
@Override public void createPartControl(Composite parent){
  vizComposite=new Composite(parent,SWT.FILL);
  vizComposite.setLayout(new FillLayout());
  if (getEditorInput() != null && getEditorInput() instanceof VisitEditorInput) {
    vizWidget=new VisItSwtWidget(vizComposite,SWT.BORDER | SWT.DOUBLE_BUFFERED);
    mouseManager=new VisitMouseManager(vizWidget);
    vizWidget.addMouseWheelListener(new MouseWheelListener(){
      @Override public void mouseScrolled(      MouseEvent e){
        String direction=(e.count > 0) ? "String_Node_Str" : "String_Node_Str";
        vizWidget.zoom(direction);
      }
    }
);
    Listener dummy=new Listener(){
      @Override public void handleEvent(      org.eclipse.swt.widgets.Event event){
      }
    }
;
    vizWidget.addListener(SWT.KeyDown,dummy);
    vizWidget.addMouseMoveListener(new MouseMoveListener(){
      @Override public void mouseMove(      MouseEvent e){
        if (mousePressed) {
          mouseManager.enqueueMouseLocation(e.x,e.y);
        }
      }
    }
);
    vizWidget.addMouseListener(new MouseListener(){
      @Override public void mouseUp(      MouseEvent e){
        mousePressed=false;
        mouseManager.stop();
      }
      @Override public void mouseDown(      MouseEvent e){
        mousePressed=true;
        mouseManager.start(e.x,e.y,(e.stateMask & SWT.CTRL) != 0,(e.stateMask & SWT.SHIFT) != 0);
      }
      @Override public void mouseDoubleClick(      MouseEvent e){
      }
    }
);
    vizWidget.addDisposeListener(new DisposeListener(){
      @Override public void widgetDisposed(      DisposeEvent e){
      }
    }
);
    HashMap<String,String> inputMap=((VisitEditorInput)getEditorInput()).getInputMap();
    VisItSwtConnection conn=null;
    String key=inputMap.get("String_Node_Str");
    if (VisItSwtConnectionManager.hasConnection(key)) {
      conn=VisItSwtConnectionManager.getConnection(key);
    }
 else {
      conn=VisItSwtConnectionManager.createConnection(key,new Shell(Display.getDefault()),inputMap);
    }
    boolean result=(conn != null);
    boolean isRemote=Boolean.valueOf(inputMap.get("String_Node_Str"));
    if (!result) {
      if (isRemote) {
        MessageDialog.openError(parent.getShell(),"String_Node_Str","String_Node_Str");
      }
 else {
        MessageDialog.openError(parent.getShell(),"String_Node_Str","String_Node_Str");
      }
    }
    if (result) {
      try {
        int windowId=Integer.parseInt(inputMap.get("String_Node_Str"));
        int windowWidth=Integer.parseInt(inputMap.get("String_Node_Str"));
        int windowHeight=Integer.parseInt(inputMap.get("String_Node_Str"));
        vizWidget.setVisItSwtConnection(conn,windowId,windowWidth,windowHeight);
      }
 catch (      Exception e) {
        MessageDialog.openError(parent.getShell(),"String_Node_Str",e.getMessage());
      }
    }
  }
 else {
    Text errText=new Text(vizComposite,SWT.NONE);
    errText.setText("String_Node_Str");
  }
  return;
}