Program: 58097
Project: 58097
Buggy source:
/** 
 * Creates the gui components which are initialized with default values or from the pref store.
 */
@Override public void createFieldEditors(){
  Composite baseComposite=new Composite(getFieldEditorParent(),SWT.NULL);
  baseComposite.setLayout(new GridLayout(1,false));
  Label l=new Label(baseComposite,SWT.SHADOW_NONE);
  l.setText("String_Node_Str");
  layoutAlgorithmCB=new Combo(baseComposite,SWT.READ_ONLY);
  layoutAlgorithmCB.setItems(LAYOUT_ALGORITHM_DISPLAYNAME);
  int selectedLayout=preferenceStore.getInt(PreferenceConstants.TREEMAP_LAYOUT_ALGORITHM);
  layoutAlgorithmCB.setText(LAYOUT_ALGORITHM_DISPLAYNAME[selectedLayout]);
  frameButton=new Button(baseComposite,SWT.CHECK);
  boolean frameSelection=preferenceStore.getBoolean(PreferenceConstants.TREEMAP_DRAW_CLUSTER_FRAME);
  frameButton.setSelection(frameSelection);
  frameButton.setText("String_Node_Str");
  int maxDepth=preferenceStore.getInt(PreferenceConstants.TREEMAP_MAX_DEPTH);
  maxDepthButton=new Button(baseComposite,SWT.CHECK);
  maxDepthButton.setSelection(maxDepth > 0);
  maxDepthButton.addSelectionListener(new SelectionListener(){
    @Override public void widgetSelected(    SelectionEvent e){
      maxDepthSp.setEnabled(maxDepthButton.getSelection());
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
    }
  }
);
  maxDepthSp=new Spinner(baseComposite,SWT.BORDER);
  maxDepthSp.setEnabled(maxDepth > 0);
  maxDepthSp.setDigits(0);
  maxDepthSp.setMaximum(999);
  maxDepthSp.setMinimum(1);
  maxDepthSp.setIncrement(1);
  maxDepthSp.setSelection(maxDepth);
  baseComposite.pack();
}

Fixed version (ground truth):
/** 
 * Creates the gui components which are initialized with default values or from the pref store.
 */
@Override public void createFieldEditors(){
  Composite baseComposite=new Composite(getFieldEditorParent(),SWT.NULL);
  baseComposite.setLayout(new GridLayout(1,false));
  Label l=new Label(baseComposite,SWT.SHADOW_NONE);
  l.setText("String_Node_Str");
  layoutAlgorithmCB=new Combo(baseComposite,SWT.READ_ONLY);
  layoutAlgorithmCB.setItems(LAYOUT_ALGORITHM_DISPLAYNAME);
  int selectedLayout=preferenceStore.getInt(PreferenceConstants.TREEMAP_LAYOUT_ALGORITHM);
  layoutAlgorithmCB.setText(LAYOUT_ALGORITHM_DISPLAYNAME[selectedLayout]);
  frameButton=new Button(baseComposite,SWT.CHECK);
  boolean frameSelection=preferenceStore.getBoolean(PreferenceConstants.TREEMAP_DRAW_CLUSTER_FRAME);
  frameButton.setSelection(frameSelection);
  frameButton.setText("String_Node_Str");
  int maxDepth=preferenceStore.getInt(PreferenceConstants.TREEMAP_MAX_DEPTH);
  maxDepthButton=new Button(baseComposite,SWT.CHECK);
  maxDepthButton.setSelection(maxDepth > 0);
  maxDepthButton.setText("String_Node_Str");
  maxDepthButton.addSelectionListener(new SelectionListener(){
    @Override public void widgetSelected(    SelectionEvent e){
      maxDepthSp.setEnabled(maxDepthButton.getSelection());
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
    }
  }
);
  maxDepthSp=new Spinner(baseComposite,SWT.BORDER);
  maxDepthSp.setEnabled(maxDepth > 0);
  maxDepthSp.setDigits(0);
  maxDepthSp.setMaximum(999);
  maxDepthSp.setMinimum(1);
  maxDepthSp.setIncrement(1);
  maxDepthSp.setSelection(maxDepth);
  baseComposite.pack();
}