Program: 133504
Project: 133504
Buggy source:
/** 
 * Fills out the parent Composite with information and widgets related to this particular IAnalysisView.
 * @param container The Composite containing this IAnalysisView.
 */
@Override public void createViewContent(Composite container){
  super.createViewContent(container);
  container.setLayout(new FillLayout());
  sashForm=new SashForm(container,SWT.HORIZONTAL | SWT.SMOOTH);
  viewer=GridEditorTools.createViewer(sashForm,new AssemblyEditPartFactory(this));
  axialComposite=new Composite(sashForm,SWT.NONE);
  sashForm.setWeights(new int[]{3,1});
  axialScale=new Scale(axialComposite,SWT.VERTICAL);
  axialCanvas=new Canvas(axialComposite,SWT.DOUBLE_BUFFERED);
  axialSpinner=new Spinner(axialComposite,SWT.NONE);
  axialScale.setEnabled(false);
  axialSpinner.setEnabled(false);
  axialScale.setIncrement(1);
  axialScale.setMinimum(1);
  axialScale.setSelection(axialScale.getMaximum());
  axialSpinner.setMinimum(1);
  axialSpinner.setMinimum(1);
  axialSpinner.setSelection(1);
  axialFigure=new AxialRodFigure();
  LightweightSystem lws=new LightweightSystem(axialCanvas);
  lws.setContents(axialFigure);
  axialScale.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      Scale scale=(Scale)e.widget;
      setAxialLevel(scale.getMaximum() - scale.getSelection(),AxialLevelWidget.SCALE);
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
  }
);
  axialSpinner.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      Spinner spinner=(Spinner)e.widget;
      setAxialLevel(spinner.getSelection() - 1,AxialLevelWidget.SPINNER);
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
  }
);
  axialComposite.setLayout(new GridLayout(2,false));
  axialScale.setLayoutData(new GridData(GridData.FILL_VERTICAL));
  axialCanvas.setLayoutData(new GridData(GridData.FILL_BOTH));
  viewer.setContextMenu(actionMenuManager);
  axialCanvas.setMenu(actionMenuManager.createContextMenu(container));
  return;
}

Fixed version (ground truth):
/** 
 * Fills out the parent Composite with information and widgets related to this particular IAnalysisView.
 * @param container The Composite containing this IAnalysisView.
 */
@Override public void createViewContent(Composite container){
  super.createViewContent(container);
  container.setLayout(new FillLayout());
  sashForm=new SashForm(container,SWT.HORIZONTAL | SWT.SMOOTH);
  viewer=GridEditorTools.createViewer(sashForm,new AssemblyEditPartFactory(this));
  axialComposite=new Composite(sashForm,SWT.NONE);
  sashForm.setWeights(new int[]{3,1});
  axialScale=new Scale(axialComposite,SWT.VERTICAL);
  axialCanvas=new Canvas(axialComposite,SWT.DOUBLE_BUFFERED);
  axialSpinner=new Spinner(axialComposite,SWT.NONE);
  axialScale.setEnabled(false);
  axialSpinner.setEnabled(false);
  axialScale.setIncrement(1);
  axialScale.setMinimum(1);
  axialScale.setSelection(axialScale.getMaximum());
  axialSpinner.setMinimum(1);
  axialSpinner.setMinimum(1);
  axialSpinner.setSelection(1);
  axialFigure=new AxialRodFigure();
  axialFigure.setColorFactory(colorFactory);
  LightweightSystem lws=new LightweightSystem(axialCanvas);
  lws.setContents(axialFigure);
  axialScale.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      Scale scale=(Scale)e.widget;
      setAxialLevel(scale.getMaximum() - scale.getSelection(),AxialLevelWidget.SCALE);
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
  }
);
  axialSpinner.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      Spinner spinner=(Spinner)e.widget;
      setAxialLevel(spinner.getSelection() - 1,AxialLevelWidget.SPINNER);
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
  }
);
  axialComposite.setLayout(new GridLayout(2,false));
  axialScale.setLayoutData(new GridData(GridData.FILL_VERTICAL));
  axialCanvas.setLayoutData(new GridData(GridData.FILL_BOTH));
  viewer.setContextMenu(actionMenuManager);
  axialCanvas.setMenu(actionMenuManager.createContextMenu(container));
  return;
}