Program: 12064
Project: 12064
Buggy source:
/** 
 * Create field editors
 */
@Override protected void createFieldEditors(){
{
    Composite parent=getFieldEditorParent();
    Group commonPrentGroup=new Group(parent,0);
{
      FillLayout parentLayout=new FillLayout(256);
      parentLayout.marginHeight=2;
      parentLayout.marginWidth=4;
      commonPrentGroup.setLayout(parentLayout);
      commonPrentGroup.setText("String_Node_Str");
      GridData gd=new GridData(768);
      commonPrentGroup.setLayoutData(gd);
      Composite grp=new Composite(commonPrentGroup,0);
      grp.setLayout(new GridLayout(2,false));
      Label label=new Label(grp,0);
      label.setText("String_Node_Str");
      gd=new GridData(768);
      gd.horizontalSpan=2;
      label.setLayoutData(gd);
      addField(new StringFieldEditor(Preference.Common.SRC_MAIN_PATH,Preference.Common.SRC_MAIN_PATH,grp));
      addField(new StringFieldEditor(Preference.Common.SRC_TEST_PATH,Preference.Common.SRC_TEST_PATH,grp));
    }
    tcgEnable=new BooleanFieldEditor(Preference.TestClassGen.ENABLE,Preference.TestClassGen.ENABLE,parent);
    addField(tcgEnable);
    Group classConfigGroup=new Group(parent,0);
{
      FillLayout parentLayout=new FillLayout(256);
      parentLayout.marginHeight=2;
      parentLayout.marginWidth=4;
      classConfigGroup.setLayout(parentLayout);
      classConfigGroup.setText("String_Node_Str");
      GridData gd=new GridData(768);
      classConfigGroup.setLayoutData(gd);
      tcgArea=new Composite(classConfigGroup,0);
      tcgArea.setLayout(new GridLayout(2,false));
      tcgClassToExtend=new StringFieldEditor(Preference.TestClassGen.CLASS_TO_EXTEND,Preference.TestClassGen.CLASS_TO_EXTEND,tcgArea);
      addField(tcgClassToExtend);
    }
    tmgEnable=new BooleanFieldEditor(Preference.TestMethodGen.ENABLE,Preference.TestMethodGen.ENABLE,parent){
      @Override protected void valueChanged(      boolean oldValue,      boolean newValue){
        super.valueChanged(oldValue,newValue);
        switchDisplayOfTestMethodsGenArea(newValue);
      }
      @Override protected void doLoad(){
        super.doLoad();
        switchDisplayOfTestMethodsGenArea(getBooleanValue());
      }
      @Override protected void doLoadDefault(){
        super.doLoadDefault();
        switchDisplayOfTestMethodsGenArea(getBooleanValue());
      }
    }
;
    addField(tmgEnable);
    tmgParentGroup=new Group(parent,0);
{
      FillLayout parentLayout=new FillLayout(256);
      parentLayout.marginHeight=4;
      parentLayout.marginWidth=4;
      tmgParentGroup.setLayout(parentLayout);
      tmgParentGroup.setText("String_Node_Str");
      GridData gd=new GridData(768);
      tmgParentGroup.setLayoutData(gd);
      tmgArea=new Composite(tmgParentGroup,0);
      GridLayout layout=new GridLayout(2,false);
      layout.marginHeight=4;
      layout.marginWidth=4;
      tmgArea.setLayout(layout);
{
        tmgCOmmonExecludesAccessors=new BooleanFieldEditor(Preference.TestMethodGen.EXLCUDES_ACCESSORS,Preference.TestMethodGen.EXLCUDES_ACCESSORS,tmgArea);
        addField(tmgCOmmonExecludesAccessors);
      }
{
        tmgCommonDelimiter=new StringFieldEditor(Preference.TestMethodGen.DELIMITER,Preference.TestMethodGen.DELIMITER,10,tmgArea);
        addField(tmgCommonDelimiter);
      }
    }
{
      tmgEnableArgs=new BooleanFieldEditor(Preference.TestMethodGen.ARGS,Preference.TestMethodGen.ARGS,tmgParentGroup){
        @Override protected void valueChanged(        boolean oldValue,        boolean newValue){
          super.valueChanged(oldValue,newValue);
          switchDisplayOfMethodArgsArea(newValue);
        }
        @Override protected void doLoad(){
          super.doLoad();
          switchDisplayOfMethodArgsArea(getBooleanValue());
        }
        @Override protected void doLoadDefault(){
          super.doLoadDefault();
          switchDisplayOfMethodArgsArea(getBooleanValue());
        }
      }
;
      addField(tmgEnableArgs);
      Group group=new Group(tmgParentGroup,0);
      FillLayout layout=new FillLayout(256);
      layout.marginHeight=4;
      layout.marginWidth=4;
      group.setLayout(layout);
      group.setText("String_Node_Str");
      GridData gd=new GridData(768);
      gd.horizontalSpan=2;
      group.setLayoutData(gd);
      tmgEnableArgsArea=new Composite(group,0);
      tmgEnableArgsArea.setLayout(new GridLayout(2,false));
      tmgArgsPrefix=new StringFieldEditor(Preference.TestMethodGen.ARGS_PREFIX,Preference.TestMethodGen.ARGS_PREFIX,tmgEnableArgsArea);
      addField(tmgArgsPrefix);
      tmgArgsDelimiter=new StringFieldEditor(Preference.TestMethodGen.ARGS_DELIMITER,Preference.TestMethodGen.ARGS_DELIMITER,tmgEnableArgsArea);
      addField(tmgArgsDelimiter);
    }
{
      tmgEnableReturn=new BooleanFieldEditor(Preference.TestMethodGen.RETURN,Preference.TestMethodGen.RETURN,tmgParentGroup){
        @Override protected void valueChanged(        boolean oldValue,        boolean newValue){
          super.valueChanged(oldValue,newValue);
          switchDisplayOfMethodReturnArea(newValue);
        }
        @Override protected void doLoad(){
          super.doLoad();
          switchDisplayOfMethodReturnArea(getBooleanValue());
        }
        @Override protected void doLoadDefault(){
          super.doLoadDefault();
          switchDisplayOfMethodReturnArea(getBooleanValue());
        }
      }
;
      addField(tmgEnableReturn);
      Group group=new Group(tmgParentGroup,0);
      FillLayout layout=new FillLayout(256);
      layout.marginHeight=4;
      layout.marginWidth=4;
      group.setLayout(layout);
      group.setText("String_Node_Str");
      GridData gd=new GridData(768);
      gd.horizontalSpan=2;
      group.setLayoutData(gd);
      tmgReturnArea=new Composite(group,0);
      tmgReturnArea.setLayout(new GridLayout(2,false));
      tmgReturnPrefix=new StringFieldEditor(Preference.TestMethodGen.RETURN_PREFIX,Preference.TestMethodGen.RETURN_PREFIX,tmgReturnArea);
      addField(tmgReturnPrefix);
      tmgReturnDelimiter=new StringFieldEditor(Preference.TestMethodGen.RETURN_DELIMITER,Preference.TestMethodGen.RETURN_DELIMITER,tmgReturnArea);
      addField(tmgReturnDelimiter);
    }
{
      tmgEnableGenerateSample=new BooleanFieldEditor(Preference.TestMethodGen.METHOD_SAMPLE_IMPLEMENTATION,Preference.TestMethodGen.METHOD_SAMPLE_IMPLEMENTATION,tmgParentGroup){
        @Override protected void valueChanged(        boolean oldValue,        boolean newValue){
          super.valueChanged(oldValue,newValue);
          switchDisplayOfSampleImplGenArea(newValue);
        }
        @Override protected void doLoad(){
          super.doLoad();
          switchDisplayOfSampleImplGenArea(getBooleanValue());
        }
        @Override protected void doLoadDefault(){
          super.doLoadDefault();
          switchDisplayOfSampleImplGenArea(getBooleanValue());
        }
      }
;
      addField(tmgEnableGenerateSample);
      Group group=new Group(tmgParentGroup,0);
      FillLayout layout=new FillLayout(768);
      layout.marginHeight=4;
      layout.marginWidth=4;
      group.setLayout(layout);
      group.setText("String_Node_Str");
      GridData gd=new GridData(350);
      gd.horizontalSpan=2;
      group.setLayoutData(gd);
      tmgSampleImplGenArea=new Composite(group,0);
      tmgSampleImplGenArea.setLayout(new GridLayout(2,false));
      String none=Preference.TestMethodGen.USING_MOCK_NONE;
      String easyMock=Preference.TestMethodGen.USING_MOCK_EASYMOCK;
      String jmock2=Preference.TestMethodGen.USING_MOCK_JMOCK2;
      String[][] labelAndValues=new String[][]{{none,none},{easyMock,easyMock},{jmock2,jmock2}};
      tmgRadioGroupMocks=new RadioGroupFieldEditor(Preference.TestMethodGen.USING_MOCK,"String_Node_Str",3,labelAndValues,tmgSampleImplGenArea);
      addField(tmgRadioGroupMocks);
    }
  }
}

Fixed version (ground truth):
/** 
 * Create field editors
 */
@Override protected void createFieldEditors(){
{
    Composite parent=getFieldEditorParent();
    Group commonPrentGroup=new Group(parent,0);
{
      FillLayout parentLayout=new FillLayout(256);
      parentLayout.marginHeight=2;
      parentLayout.marginWidth=4;
      commonPrentGroup.setLayout(parentLayout);
      commonPrentGroup.setText("String_Node_Str");
      GridData gd=new GridData(768);
      commonPrentGroup.setLayoutData(gd);
      Composite grp=new Composite(commonPrentGroup,0);
      grp.setLayout(new GridLayout(2,false));
      Label label=new Label(grp,0);
      label.setText("String_Node_Str");
      gd=new GridData(768);
      gd.horizontalSpan=2;
      label.setLayoutData(gd);
      addField(new StringFieldEditor(Preference.Common.SRC_MAIN_PATH,Preference.Common.SRC_MAIN_PATH,grp));
      addField(new StringFieldEditor(Preference.Common.SRC_TEST_PATH,Preference.Common.SRC_TEST_PATH,grp));
    }
    tcgEnable=new BooleanFieldEditor(Preference.TestClassGen.ENABLE,Preference.TestClassGen.ENABLE,parent);
    addField(tcgEnable);
    Group classConfigGroup=new Group(parent,0);
{
      FillLayout parentLayout=new FillLayout(256);
      parentLayout.marginHeight=2;
      parentLayout.marginWidth=4;
      classConfigGroup.setLayout(parentLayout);
      classConfigGroup.setText("String_Node_Str");
      GridData gd=new GridData(768);
      classConfigGroup.setLayoutData(gd);
      tcgArea=new Composite(classConfigGroup,0);
      tcgArea.setLayout(new GridLayout(2,false));
      tcgClassToExtend=new StringFieldEditor(Preference.TestClassGen.CLASS_TO_EXTEND,Preference.TestClassGen.CLASS_TO_EXTEND,tcgArea);
      addField(tcgClassToExtend);
    }
    tmgEnable=new BooleanFieldEditor(Preference.TestMethodGen.ENABLE,Preference.TestMethodGen.ENABLE,parent){
      @Override protected void valueChanged(      boolean oldValue,      boolean newValue){
        super.valueChanged(oldValue,newValue);
        switchDisplayOfTestMethodsGenArea(newValue);
      }
      @Override protected void doLoad(){
        super.doLoad();
        switchDisplayOfTestMethodsGenArea(getBooleanValue());
      }
      @Override protected void doLoadDefault(){
        super.doLoadDefault();
        switchDisplayOfTestMethodsGenArea(getBooleanValue());
      }
    }
;
    addField(tmgEnable);
    tmgParentGroup=new Group(parent,0);
{
      FillLayout parentLayout=new FillLayout(256);
      parentLayout.marginHeight=4;
      parentLayout.marginWidth=4;
      tmgParentGroup.setLayout(parentLayout);
      tmgParentGroup.setText("String_Node_Str");
      GridData gd=new GridData(768);
      tmgParentGroup.setLayoutData(gd);
      tmgArea=new Composite(tmgParentGroup,0);
      GridLayout layout=new GridLayout(2,false);
      layout.marginHeight=4;
      layout.marginWidth=4;
      tmgArea.setLayout(layout);
{
        tmgCOmmonExecludesAccessors=new BooleanFieldEditor(Preference.TestMethodGen.EXLCUDES_ACCESSORS,Preference.TestMethodGen.EXLCUDES_ACCESSORS,tmgArea);
        addField(tmgCOmmonExecludesAccessors);
      }
{
        tmgCommonDelimiter=new StringFieldEditor(Preference.TestMethodGen.DELIMITER,Preference.TestMethodGen.DELIMITER,10,tmgArea);
        addField(tmgCommonDelimiter);
      }
    }
{
      tmgEnableArgs=new BooleanFieldEditor(Preference.TestMethodGen.ARGS,Preference.TestMethodGen.ARGS,tmgParentGroup){
        @Override protected void valueChanged(        boolean oldValue,        boolean newValue){
          super.valueChanged(oldValue,newValue);
          switchDisplayOfMethodArgsArea(newValue);
        }
        @Override protected void doLoad(){
          super.doLoad();
          switchDisplayOfMethodArgsArea(getBooleanValue());
        }
        @Override protected void doLoadDefault(){
          super.doLoadDefault();
          switchDisplayOfMethodArgsArea(getBooleanValue());
        }
      }
;
      addField(tmgEnableArgs);
      Group group=new Group(tmgParentGroup,0);
      FillLayout layout=new FillLayout(256);
      layout.marginHeight=4;
      layout.marginWidth=4;
      group.setLayout(layout);
      group.setText("String_Node_Str");
      GridData gd=new GridData(768);
      gd.horizontalSpan=2;
      group.setLayoutData(gd);
      tmgEnableArgsArea=new Composite(group,0);
      tmgEnableArgsArea.setLayout(new GridLayout(2,false));
      tmgArgsPrefix=new StringFieldEditor(Preference.TestMethodGen.ARGS_PREFIX,Preference.TestMethodGen.ARGS_PREFIX,tmgEnableArgsArea);
      addField(tmgArgsPrefix);
      tmgArgsDelimiter=new StringFieldEditor(Preference.TestMethodGen.ARGS_DELIMITER,Preference.TestMethodGen.ARGS_DELIMITER,tmgEnableArgsArea);
      addField(tmgArgsDelimiter);
    }
{
      tmgEnableReturn=new BooleanFieldEditor(Preference.TestMethodGen.RETURN,Preference.TestMethodGen.RETURN,tmgParentGroup){
        @Override protected void valueChanged(        boolean oldValue,        boolean newValue){
          super.valueChanged(oldValue,newValue);
          switchDisplayOfMethodReturnArea(newValue);
        }
        @Override protected void doLoad(){
          super.doLoad();
          switchDisplayOfMethodReturnArea(getBooleanValue());
        }
        @Override protected void doLoadDefault(){
          super.doLoadDefault();
          switchDisplayOfMethodReturnArea(getBooleanValue());
        }
      }
;
      addField(tmgEnableReturn);
      Group group=new Group(tmgParentGroup,0);
      FillLayout layout=new FillLayout(256);
      layout.marginHeight=4;
      layout.marginWidth=4;
      group.setLayout(layout);
      group.setText("String_Node_Str");
      GridData gd=new GridData(768);
      gd.horizontalSpan=2;
      group.setLayoutData(gd);
      tmgReturnArea=new Composite(group,0);
      tmgReturnArea.setLayout(new GridLayout(2,false));
      tmgReturnPrefix=new StringFieldEditor(Preference.TestMethodGen.RETURN_PREFIX,Preference.TestMethodGen.RETURN_PREFIX,tmgReturnArea);
      addField(tmgReturnPrefix);
      tmgReturnDelimiter=new StringFieldEditor(Preference.TestMethodGen.RETURN_DELIMITER,Preference.TestMethodGen.RETURN_DELIMITER,tmgReturnArea);
      addField(tmgReturnDelimiter);
    }
{
      tmgEnableGenerateSample=new BooleanFieldEditor(Preference.TestMethodGen.METHOD_SAMPLE_IMPL,Preference.TestMethodGen.METHOD_SAMPLE_IMPL,tmgParentGroup){
        @Override protected void valueChanged(        boolean oldValue,        boolean newValue){
          super.valueChanged(oldValue,newValue);
          switchDisplayOfSampleImplGenArea(newValue);
        }
        @Override protected void doLoad(){
          super.doLoad();
          switchDisplayOfSampleImplGenArea(getBooleanValue());
        }
        @Override protected void doLoadDefault(){
          super.doLoadDefault();
          switchDisplayOfSampleImplGenArea(getBooleanValue());
        }
      }
;
      addField(tmgEnableGenerateSample);
      Group group=new Group(tmgParentGroup,0);
      FillLayout layout=new FillLayout(768);
      layout.marginHeight=4;
      layout.marginWidth=4;
      group.setLayout(layout);
      group.setText("String_Node_Str");
      GridData gd=new GridData(350);
      gd.horizontalSpan=2;
      group.setLayoutData(gd);
      tmgSampleImplGenArea=new Composite(group,0);
      tmgSampleImplGenArea.setLayout(new GridLayout(2,false));
      String none=Preference.TestMethodGen.USING_MOCK_NONE;
      String easyMock=Preference.TestMethodGen.USING_MOCK_EASYMOCK;
      String jmock2=Preference.TestMethodGen.USING_MOCK_JMOCK2;
      String[][] labelAndValues=new String[][]{{none,none},{easyMock,easyMock},{jmock2,jmock2}};
      tmgRadioGroupMocks=new RadioGroupFieldEditor(Preference.TestMethodGen.USING_MOCK,"String_Node_Str",3,labelAndValues,tmgSampleImplGenArea);
      addField(tmgRadioGroupMocks);
    }
  }
}