Program: 119500
Project: 119500
Buggy source:
/** 
 * DOC Administrator AdvanceSettingComposite constructor comment.
 * @param parent
 * @param style
 */
public AdvanceSettingComposite(Composite parent,int style){
  super(parent,style);
  setExpandHorizontal(true);
  setExpandVertical(true);
  this.setLayout(new FormLayout());
  processManager=ProcessManager.getInstance();
  FormData layoutData=new FormData();
  layoutData.left=new FormAttachment(0,0);
  layoutData.right=new FormAttachment(100,0);
  layoutData.top=new FormAttachment(0,0);
  layoutData.bottom=new FormAttachment(100,0);
  setLayoutData(layoutData);
  setLayout(new FormLayout());
  final Composite panel=new Composite(this,SWT.NONE);
  setContent(panel);
  FormLayout layout=new FormLayout();
  layout.marginWidth=5 + 2;
  layout.marginHeight=4;
  layout.spacing=6 + 1;
  panel.setLayout(layout);
  perfBtn=new Button(panel,SWT.CHECK);
  FormData layouData=new FormData();
  layouData.left=new FormAttachment(0,10);
  layouData.right=new FormAttachment(0,100);
  layouData.top=new FormAttachment(0,10);
  layouData.bottom=new FormAttachment(0,30);
  perfBtn.setLayoutData(layouData);
  if (ProcessManager.getProcessContext() != null && ProcessManager.getProcessContext().getProcess() != null) {
    perfBtn.setVisible(!ProcessManager.getProcessContext().getProcess().getComponentsType().equals(ComponentCategory.CATEGORY_4_MAPREDUCE.getName()));
  }
  perfBtn.setText(Messages.getString("String_Node_Str"));
  perfBtn.setToolTipText(Messages.getString("String_Node_Str"));
  perfBtn.setEnabled(false);
  saveJobBeforeRunButton=new Button(panel,SWT.CHECK);
  FormData layouDatac=new FormData();
  if (perfBtn.isVisible()) {
    layouDatac.left=new FormAttachment(perfBtn,0,SWT.RIGHT);
  }
 else {
    layouDatac.left=new FormAttachment(0,10);
  }
  layouDatac.right=new FormAttachment(0,300);
  layouDatac.top=new FormAttachment(0,10);
  layouDatac.bottom=new FormAttachment(0,30);
  saveJobBeforeRunButton.setLayoutData(layouDatac);
  saveJobBeforeRunButton.setText(Messages.getString("String_Node_Str"));
  saveJobBeforeRunButton.setToolTipText(Messages.getString("String_Node_Str"));
  saveJobBeforeRunButton.setEnabled(false);
  watchBtn=new Button(panel,SWT.CHECK);
  FormData layouDatad=new FormData();
  layouDatad.left=new FormAttachment(0,10);
  layouDatad.right=new FormAttachment(0,100);
  layouDatad.top=new FormAttachment(0,30);
  layouDatad.bottom=new FormAttachment(0,50);
  watchBtn.setLayoutData(layouDatad);
  watchBtn.setText(Messages.getString("String_Node_Str"));
  watchBtn.setToolTipText(Messages.getString("String_Node_Str"));
  watchBtn.setEnabled(false);
  clearBeforeExec=new Button(panel,SWT.CHECK);
  clearBeforeExec.setText(Messages.getString("String_Node_Str"));
  clearBeforeExec.setToolTipText(Messages.getString("String_Node_Str"));
  FormData layouDatacb=new FormData();
  layouDatacb.left=new FormAttachment(watchBtn,0,SWT.RIGHT);
  layouDatacb.right=new FormAttachment(0,300);
  layouDatacb.top=new FormAttachment(0,30);
  layouDatacb.bottom=new FormAttachment(0,50);
  clearBeforeExec.setLayoutData(layouDatacb);
  clearBeforeExec.setEnabled(false);
  if (Log4jPrefsSettingManager.getInstance().isLog4jEnable()) {
    createLog4jOptions(panel);
  }
  Group execGroup=new Group(panel,SWT.NONE);
  execGroup.setText("String_Node_Str");
  GridLayout layoutg=new GridLayout();
  layoutg.marginHeight=0;
  layoutg.marginWidth=0;
  execGroup.setLayout(layoutg);
  FormData layouDatag=new FormData();
  layouDatag.left=new FormAttachment(0,10);
  layouDatag.right=new FormAttachment(100,0);
  if (customLog4j != null) {
    layouDatag.top=new FormAttachment(watchBtn,25);
  }
 else {
    layouDatag.top=new FormAttachment(watchBtn,0);
  }
  layouDatag.bottom=new FormAttachment(100,0);
  execGroup.setLayoutData(layouDatag);
  ScrolledComposite execScroll=new ScrolledComposite(execGroup,SWT.V_SCROLL | SWT.H_SCROLL);
  execScroll.setExpandHorizontal(true);
  execScroll.setExpandVertical(true);
  execScroll.setLayoutData(new GridData(GridData.FILL_BOTH));
  if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA) {
    argumentsComposite=new Composite(execScroll,SWT.NONE);
    execScroll.setContent(argumentsComposite);
    execScroll.setLayout(new GridLayout());
    argumentsComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridLayout gridLayoutArguments=new GridLayout(1,false);
    argumentsComposite.setLayout(gridLayoutArguments);
    argumentsViewer=new JobVMArgumentsComposite("String_Node_Str",Messages.getString("String_Node_Str"),argumentsComposite);
    execScroll.setMinSize(execGroup.computeSize(SWT.DEFAULT,SWT.DEFAULT));
  }
  addListeners();
  clearBeforeExec.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.ISCLEARBEFORERUN));
  watchBtn.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.ISEXECTIMERUN));
  perfBtn.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.ISSTATISTICSRUN));
  if (customLog4j != null) {
    customLog4j.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.CUSTOMLOG4J));
  }
  if (log4jLevel != null) {
    log4jLevel.setText(RunProcessPlugin.getDefault().getPreferenceStore().getString(RunProcessPrefsConstants.LOG4JLEVEL));
  }
}

Fixed version (ground truth):
/** 
 * DOC Administrator AdvanceSettingComposite constructor comment.
 * @param parent
 * @param style
 */
public AdvanceSettingComposite(Composite parent,int style){
  super(parent,style);
  setExpandHorizontal(true);
  setExpandVertical(true);
  this.setLayout(new FormLayout());
  processManager=ProcessManager.getInstance();
  FormData layoutData=new FormData();
  layoutData.left=new FormAttachment(0,0);
  layoutData.right=new FormAttachment(100,0);
  layoutData.top=new FormAttachment(0,0);
  layoutData.bottom=new FormAttachment(100,0);
  setLayoutData(layoutData);
  setLayout(new FormLayout());
  final Composite panel=new Composite(this,SWT.NONE);
  setContent(panel);
  FormLayout layout=new FormLayout();
  layout.marginWidth=5 + 2;
  layout.marginHeight=4;
  layout.spacing=6 + 1;
  panel.setLayout(layout);
  perfBtn=new Button(panel,SWT.CHECK);
  FormData layouData=new FormData();
  layouData.left=new FormAttachment(0,10);
  layouData.right=new FormAttachment(0,100);
  layouData.top=new FormAttachment(0,10);
  layouData.bottom=new FormAttachment(0,30);
  perfBtn.setLayoutData(layouData);
  perfBtn.setText(Messages.getString("String_Node_Str"));
  perfBtn.setToolTipText(Messages.getString("String_Node_Str"));
  perfBtn.setEnabled(false);
  saveJobBeforeRunButton=new Button(panel,SWT.CHECK);
  FormData layouDatac=new FormData();
  layouDatac.left=new FormAttachment(perfBtn,0,SWT.RIGHT);
  layouDatac.right=new FormAttachment(0,300);
  layouDatac.top=new FormAttachment(0,10);
  layouDatac.bottom=new FormAttachment(0,30);
  saveJobBeforeRunButton.setLayoutData(layouDatac);
  saveJobBeforeRunButton.setText(Messages.getString("String_Node_Str"));
  saveJobBeforeRunButton.setToolTipText(Messages.getString("String_Node_Str"));
  saveJobBeforeRunButton.setEnabled(false);
  watchBtn=new Button(panel,SWT.CHECK);
  FormData layouDatad=new FormData();
  layouDatad.left=new FormAttachment(0,10);
  layouDatad.right=new FormAttachment(0,100);
  layouDatad.top=new FormAttachment(0,30);
  layouDatad.bottom=new FormAttachment(0,50);
  watchBtn.setLayoutData(layouDatad);
  watchBtn.setText(Messages.getString("String_Node_Str"));
  watchBtn.setToolTipText(Messages.getString("String_Node_Str"));
  watchBtn.setEnabled(false);
  clearBeforeExec=new Button(panel,SWT.CHECK);
  clearBeforeExec.setText(Messages.getString("String_Node_Str"));
  clearBeforeExec.setToolTipText(Messages.getString("String_Node_Str"));
  FormData layouDatacb=new FormData();
  layouDatacb.left=new FormAttachment(watchBtn,0,SWT.RIGHT);
  layouDatacb.right=new FormAttachment(0,300);
  layouDatacb.top=new FormAttachment(0,30);
  layouDatacb.bottom=new FormAttachment(0,50);
  clearBeforeExec.setLayoutData(layouDatacb);
  clearBeforeExec.setEnabled(false);
  if (Log4jPrefsSettingManager.getInstance().isLog4jEnable()) {
    createLog4jOptions(panel);
  }
  Group execGroup=new Group(panel,SWT.NONE);
  execGroup.setText("String_Node_Str");
  GridLayout layoutg=new GridLayout();
  layoutg.marginHeight=0;
  layoutg.marginWidth=0;
  execGroup.setLayout(layoutg);
  FormData layouDatag=new FormData();
  layouDatag.left=new FormAttachment(0,10);
  layouDatag.right=new FormAttachment(100,0);
  if (customLog4j != null) {
    layouDatag.top=new FormAttachment(watchBtn,25);
  }
 else {
    layouDatag.top=new FormAttachment(watchBtn,0);
  }
  layouDatag.bottom=new FormAttachment(100,0);
  execGroup.setLayoutData(layouDatag);
  ScrolledComposite execScroll=new ScrolledComposite(execGroup,SWT.V_SCROLL | SWT.H_SCROLL);
  execScroll.setExpandHorizontal(true);
  execScroll.setExpandVertical(true);
  execScroll.setLayoutData(new GridData(GridData.FILL_BOTH));
  if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA) {
    argumentsComposite=new Composite(execScroll,SWT.NONE);
    execScroll.setContent(argumentsComposite);
    execScroll.setLayout(new GridLayout());
    argumentsComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridLayout gridLayoutArguments=new GridLayout(1,false);
    argumentsComposite.setLayout(gridLayoutArguments);
    argumentsViewer=new JobVMArgumentsComposite("String_Node_Str",Messages.getString("String_Node_Str"),argumentsComposite);
    execScroll.setMinSize(execGroup.computeSize(SWT.DEFAULT,SWT.DEFAULT));
  }
  addListeners();
  clearBeforeExec.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.ISCLEARBEFORERUN));
  watchBtn.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.ISEXECTIMERUN));
  perfBtn.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.ISSTATISTICSRUN));
  if (customLog4j != null) {
    customLog4j.setSelection(RunProcessPlugin.getDefault().getPreferenceStore().getBoolean(RunProcessPrefsConstants.CUSTOMLOG4J));
  }
  if (log4jLevel != null) {
    log4jLevel.setText(RunProcessPlugin.getDefault().getPreferenceStore().getString(RunProcessPrefsConstants.LOG4JLEVEL));
  }
}