Program: 126076
Project: 126076
Buggy source:
@Override public void createControl(Composite parent){
  Composite container=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout(2,false);
  container.setLayout(layout);
  boolean alreadyEditedByUser=((EditProcessPropertiesWizard)this.getWizard()).isAlreadyEditedByUser();
  if (alreadyEditedByUser) {
    Label label=new Label(container,SWT.NONE);
    label.setForeground(ColorConstants.red);
    label.setText(Messages.getString("String_Node_Str"));
    GridData gridData=new GridData();
    gridData.horizontalSpan=2;
    label.setLayoutData(gridData);
  }
  if (!PluginChecker.isMapReducePluginLoader() && !PluginChecker.isStormPluginLoader()) {
    super.createControl(container);
  }
 else {
    GridData data;
    Label nameLab=new Label(container,SWT.NONE);
    nameLab.setText(Messages.getString("String_Node_Str"));
    nameText=new Text(container,SWT.BORDER);
    nameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    nameText.setEditable(!readOnly);
    Label jobTypeLabel=new Label(container,SWT.NONE);
    jobTypeLabel.setText(Messages.getString("String_Node_Str"));
    Composite typeGroup=new Composite(container,SWT.NONE);
    typeGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    GridLayout typeGroupLayout=new GridLayout(3,false);
    typeGroupLayout.marginHeight=0;
    typeGroupLayout.marginWidth=0;
    typeGroupLayout.horizontalSpacing=0;
    typeGroup.setLayout(typeGroupLayout);
    jobTypeCCombo=new CCombo(typeGroup,SWT.BORDER);
    jobTypeCCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    jobTypeCCombo.setEditable(false);
    jobTypeCCombo.setItems(JobType.getJobTypeToDispaly());
    jobTypeCCombo.setText(JobType.STANDARD.getDisplayName());
    Label label=new Label(typeGroup,SWT.NONE);
    label.setText("String_Node_Str" + Messages.getString("String_Node_Str") + "String_Node_Str");
    framework=new CCombo(typeGroup,SWT.BORDER);
    framework.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    framework.setEditable(false);
    framework.setItems(new String[0]);
    Label purposeLab=new Label(container,SWT.NONE);
    purposeLab.setText(Messages.getString("String_Node_Str"));
    purposeText=new Text(container,SWT.BORDER);
    purposeText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    purposeText.setEditable(!readOnly);
    Label descriptionLab=new Label(container,SWT.NONE);
    descriptionLab.setText(Messages.getString("String_Node_Str"));
    descriptionLab.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
    descriptionText=new Text(container,SWT.BORDER | SWT.MULTI | SWT.WRAP| SWT.V_SCROLL);
    data=new GridData(GridData.FILL_HORIZONTAL);
    data.heightHint=60;
    descriptionText.setLayoutData(data);
    descriptionText.setEditable(!readOnly);
    Label authorLab=new Label(container,SWT.NONE);
    authorLab.setText(Messages.getString("String_Node_Str"));
    authorText=new Text(container,SWT.BORDER);
    authorText.setEnabled(false);
    authorText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Label lockerLab=new Label(container,SWT.NONE);
    lockerLab.setText(Messages.getString("String_Node_Str"));
    lockerText=new Text(container,SWT.BORDER);
    lockerText.setEnabled(false);
    lockerText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
    allowVerchange=brandingService.getBrandingConfiguration().isAllowChengeVersion();
    if (allowVerchange) {
      Label versionLab=new Label(container,SWT.NONE);
      versionLab.setText(Messages.getString("String_Node_Str"));
      Composite versionContainer=new Composite(container,SWT.NONE);
      versionContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      GridLayout versionLayout=new GridLayout(3,false);
      versionLayout.marginHeight=0;
      versionLayout.marginWidth=0;
      versionLayout.horizontalSpacing=0;
      versionContainer.setLayout(versionLayout);
      versionText=new Text(versionContainer,SWT.BORDER);
      versionText.setEnabled(false);
      versionText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      versionMajorBtn=new Button(versionContainer,SWT.PUSH);
      versionMajorBtn.setText(Messages.getString("String_Node_Str"));
      versionMajorBtn.setEnabled(!readOnly && allowVerchange);
      versionMinorBtn=new Button(versionContainer,SWT.PUSH);
      versionMinorBtn.setText(Messages.getString("String_Node_Str"));
      versionMinorBtn.setEnabled(!readOnly && allowVerchange);
    }
    Label statusLab=new Label(container,SWT.NONE);
    statusLab.setText(Messages.getString("String_Node_Str"));
    statusText=new CCombo(container,SWT.BORDER);
    statusText.setEditable(false);
    List<org.talend.core.model.properties.Status> statusList;
    try {
      if (property != null) {
        statusList=statusHelper.getStatusList(property);
        statusText.setItems(toArray(statusList));
        statusText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        statusText.setEnabled(!readOnly);
      }
    }
 catch (    PersistenceException e) {
      ExceptionHandler.process(e);
    }
    Label pathLab=new Label(container,SWT.NONE);
    pathLab.setText(Messages.getString("String_Node_Str"));
    Composite pathContainer=new Composite(container,SWT.NONE);
    pathContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    GridLayout pathLayout=new GridLayout(2,false);
    pathLayout.marginHeight=0;
    pathLayout.marginWidth=0;
    pathLayout.horizontalSpacing=0;
    pathContainer.setLayout(pathLayout);
    pathText=new Text(pathContainer,SWT.BORDER);
    pathText.setEnabled(false);
    pathText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    if (editPath) {
      Button button=new Button(pathContainer,SWT.PUSH);
      button.setText(Messages.getString("String_Node_Str"));
      button.addSelectionListener(new SelectionAdapter(){
        @Override public void widgetSelected(        SelectionEvent e){
          openFolderSelectionDialog(NEED_CANCEL_BUTTON);
        }
      }
);
      if (destinationPath == null) {
        openFolderSelectionDialog(!NEED_CANCEL_BUTTON);
      }
    }
  }
  setControl(container);
  updateContent();
  addListeners();
  setPageComplete(false);
}

Fixed version (ground truth):
@Override public void createControl(Composite parent){
  Composite container=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout(2,false);
  container.setLayout(layout);
  boolean alreadyEditedByUser=((EditProcessPropertiesWizard)this.getWizard()).isAlreadyEditedByUser();
  if (alreadyEditedByUser) {
    Label label=new Label(container,SWT.NONE);
    label.setForeground(ColorConstants.red);
    label.setText(Messages.getString("String_Node_Str"));
    GridData gridData=new GridData();
    gridData.horizontalSpan=2;
    label.setLayoutData(gridData);
  }
  if (!PluginChecker.isMapReducePluginLoader() && !PluginChecker.isStormPluginLoader()) {
    super.createControl(container);
  }
 else {
    GridData data;
    Label nameLab=new Label(container,SWT.NONE);
    nameLab.setText(Messages.getString("String_Node_Str"));
    nameText=new Text(container,SWT.BORDER);
    nameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    nameText.setEditable(!readOnly);
    Label jobTypeLabel=new Label(container,SWT.NONE);
    jobTypeLabel.setText(Messages.getString("String_Node_Str"));
    Composite typeGroup=new Composite(container,SWT.NONE);
    typeGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    GridLayout typeGroupLayout=new GridLayout(3,false);
    typeGroupLayout.marginHeight=0;
    typeGroupLayout.marginWidth=0;
    typeGroupLayout.horizontalSpacing=0;
    typeGroup.setLayout(typeGroupLayout);
    jobTypeCCombo=new CCombo(typeGroup,SWT.BORDER);
    jobTypeCCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    jobTypeCCombo.setEditable(false);
    jobTypeCCombo.setItems(JobType.getJobTypeToDispaly());
    jobTypeCCombo.setText(JobType.STANDARD.getDisplayName());
    Label label=new Label(typeGroup,SWT.NONE);
    label.setText("String_Node_Str" + Messages.getString("String_Node_Str") + "String_Node_Str");
    framework=new CCombo(typeGroup,SWT.BORDER);
    framework.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    framework.setEditable(false);
    framework.setItems(new String[0]);
    framework.setEnabled(false);
    Label purposeLab=new Label(container,SWT.NONE);
    purposeLab.setText(Messages.getString("String_Node_Str"));
    purposeText=new Text(container,SWT.BORDER);
    purposeText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    purposeText.setEditable(!readOnly);
    Label descriptionLab=new Label(container,SWT.NONE);
    descriptionLab.setText(Messages.getString("String_Node_Str"));
    descriptionLab.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
    descriptionText=new Text(container,SWT.BORDER | SWT.MULTI | SWT.WRAP| SWT.V_SCROLL);
    data=new GridData(GridData.FILL_HORIZONTAL);
    data.heightHint=60;
    descriptionText.setLayoutData(data);
    descriptionText.setEditable(!readOnly);
    Label authorLab=new Label(container,SWT.NONE);
    authorLab.setText(Messages.getString("String_Node_Str"));
    authorText=new Text(container,SWT.BORDER);
    authorText.setEnabled(false);
    authorText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Label lockerLab=new Label(container,SWT.NONE);
    lockerLab.setText(Messages.getString("String_Node_Str"));
    lockerText=new Text(container,SWT.BORDER);
    lockerText.setEnabled(false);
    lockerText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
    allowVerchange=brandingService.getBrandingConfiguration().isAllowChengeVersion();
    if (allowVerchange) {
      Label versionLab=new Label(container,SWT.NONE);
      versionLab.setText(Messages.getString("String_Node_Str"));
      Composite versionContainer=new Composite(container,SWT.NONE);
      versionContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      GridLayout versionLayout=new GridLayout(3,false);
      versionLayout.marginHeight=0;
      versionLayout.marginWidth=0;
      versionLayout.horizontalSpacing=0;
      versionContainer.setLayout(versionLayout);
      versionText=new Text(versionContainer,SWT.BORDER);
      versionText.setEnabled(false);
      versionText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      versionMajorBtn=new Button(versionContainer,SWT.PUSH);
      versionMajorBtn.setText(Messages.getString("String_Node_Str"));
      versionMajorBtn.setEnabled(!readOnly && allowVerchange);
      versionMinorBtn=new Button(versionContainer,SWT.PUSH);
      versionMinorBtn.setText(Messages.getString("String_Node_Str"));
      versionMinorBtn.setEnabled(!readOnly && allowVerchange);
    }
    Label statusLab=new Label(container,SWT.NONE);
    statusLab.setText(Messages.getString("String_Node_Str"));
    statusText=new CCombo(container,SWT.BORDER);
    statusText.setEditable(false);
    List<org.talend.core.model.properties.Status> statusList;
    try {
      if (property != null) {
        statusList=statusHelper.getStatusList(property);
        statusText.setItems(toArray(statusList));
        statusText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        statusText.setEnabled(!readOnly);
      }
    }
 catch (    PersistenceException e) {
      ExceptionHandler.process(e);
    }
    Label pathLab=new Label(container,SWT.NONE);
    pathLab.setText(Messages.getString("String_Node_Str"));
    Composite pathContainer=new Composite(container,SWT.NONE);
    pathContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    GridLayout pathLayout=new GridLayout(2,false);
    pathLayout.marginHeight=0;
    pathLayout.marginWidth=0;
    pathLayout.horizontalSpacing=0;
    pathContainer.setLayout(pathLayout);
    pathText=new Text(pathContainer,SWT.BORDER);
    pathText.setEnabled(false);
    pathText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    if (editPath) {
      Button button=new Button(pathContainer,SWT.PUSH);
      button.setText(Messages.getString("String_Node_Str"));
      button.addSelectionListener(new SelectionAdapter(){
        @Override public void widgetSelected(        SelectionEvent e){
          openFolderSelectionDialog(NEED_CANCEL_BUTTON);
        }
      }
);
      if (destinationPath == null) {
        openFolderSelectionDialog(!NEED_CANCEL_BUTTON);
      }
    }
  }
  setControl(container);
  updateContent();
  addListeners();
  setPageComplete(false);
}