Program: 136522
Project: 136522
Buggy source:
protected Section creatMetadataSection(final ScrolledForm currentform,Composite parentCom){
  Section section=createSection(currentform,topComp,getMetadataSectionTitle(),getMetadataSectionDescription());
  Composite parent=toolkit.createComposite(section);
  parent.setLayout(new GridLayout(2,false));
  nameText=createMetadataTextFiled(NAME_LABEL,parent);
  nameText.setTextLimit(EmfHelper.getStringMaxSize(CorePackage.Literals.MODEL_ELEMENT__NAME,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  purposeText=createMetadataTextFiled(PURPOSE_LABEL,parent);
  purposeText.setTextLimit(TaggedValueHelper.getStringMaxSize(TaggedValueHelper.PURPOSE,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  toolkit.createLabel(parent,DESCRIPTION_LABEL);
  descriptionText=toolkit.createText(parent,null,SWT.BORDER | SWT.MULTI | SWT.WRAP| SWT.V_SCROLL);
  GridDataFactory.fillDefaults().hint(META_FIELD_WIDTH,60).applyTo(descriptionText);
  descriptionText.setTextLimit(TaggedValueHelper.getStringMaxSize(TaggedValueHelper.DESCRIPTION,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  authorText=createMetadataTextFiled(AUTHOR_LABEL,parent);
  authorText.setTextLimit(TaggedValueHelper.getStringMaxSize(TaggedValueHelper.AUTHOR,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  if (!ReponsitoryContextBridge.isDefautProject()) {
    authorText.setEnabled(false);
    authorText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
  }
  toolkit.createLabel(parent,STATUS_LABEL);
  statusCombo=new CCombo(parent,SWT.BORDER);
  statusCombo.setEditable(false);
  String statusValue=getProperty() != null ? getProperty().getStatusCode() : DevelopmentStatus.DRAFT.getLiteral();
  List<org.talend.core.model.properties.Status> statusList=MetadataHelper.getTechnicalStatus();
  if (statusList != null && statusList.size() > 0) {
    List<String> statusArray=MetadataHelper.toArray(statusList);
    String[] tempString=new String[statusList.size()];
    statusCombo.setItems(statusArray.toArray(tempString));
    if (statusArray.contains(statusValue)) {
      statusCombo.remove(statusValue);
      statusCombo.add(statusValue,0);
    }
  }
 else {
    for (    DevelopmentStatus status : DevelopmentStatus.values()) {
      statusCombo.add(status.getLiteral());
    }
    statusCombo.add(statusValue,0);
  }
  initMetaTextFied();
  nameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      if (!isRefreshText) {
        modify=true;
        setDirty(true);
        if (PluginConstant.EMPTY_STRING.equals(nameText.getText())) {
          getManagedForm().getMessageManager().addMessage(NAMECONNOTBEEMPTY,NAMECONNOTBEEMPTY,null,IMessageProvider.ERROR,nameText);
        }
 else {
          getManagedForm().getMessageManager().removeMessage(NAMECONNOTBEEMPTY,nameText);
        }
      }
    }
  }
);
  purposeText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  descriptionText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  authorText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  statusCombo.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  addWhitespaceValidate(nameText,purposeText,descriptionText,authorText,purposeText);
  section.setClient(parent);
  return section;
}

Fixed version (ground truth):
protected Section creatMetadataSection(final ScrolledForm currentform,Composite parentCom){
  Section section=createSection(currentform,topComp,getMetadataSectionTitle(),getMetadataSectionDescription());
  Composite parent=toolkit.createComposite(section);
  parent.setLayout(new GridLayout(2,false));
  nameText=createMetadataTextFiled(DefaultMessagesImpl.getString("String_Node_Str"),parent);
  nameText.setTextLimit(EmfHelper.getStringMaxSize(CorePackage.Literals.MODEL_ELEMENT__NAME,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  purposeText=createMetadataTextFiled(DefaultMessagesImpl.getString("String_Node_Str"),parent);
  purposeText.setTextLimit(TaggedValueHelper.getStringMaxSize(TaggedValueHelper.PURPOSE,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  toolkit.createLabel(parent,DefaultMessagesImpl.getString("String_Node_Str"));
  descriptionText=toolkit.createText(parent,null,SWT.BORDER | SWT.MULTI | SWT.WRAP| SWT.V_SCROLL);
  GridDataFactory.fillDefaults().hint(META_FIELD_WIDTH,60).applyTo(descriptionText);
  descriptionText.setTextLimit(TaggedValueHelper.getStringMaxSize(TaggedValueHelper.DESCRIPTION,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  authorText=createMetadataTextFiled(DefaultMessagesImpl.getString("String_Node_Str"),parent);
  authorText.setTextLimit(TaggedValueHelper.getStringMaxSize(TaggedValueHelper.AUTHOR,MAX_TEXT_FIELD_STRING_SIZE_FOR_USUAL_STRING));
  if (!ReponsitoryContextBridge.isDefautProject()) {
    authorText.setEnabled(false);
    authorText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
  }
  toolkit.createLabel(parent,DefaultMessagesImpl.getString("String_Node_Str"));
  statusCombo=new CCombo(parent,SWT.BORDER);
  statusCombo.setEditable(false);
  String statusValue=getProperty() != null ? getProperty().getStatusCode() : DevelopmentStatus.DRAFT.getLiteral();
  List<org.talend.core.model.properties.Status> statusList=MetadataHelper.getTechnicalStatus();
  if (statusList != null && statusList.size() > 0) {
    List<String> statusArray=MetadataHelper.toArray(statusList);
    String[] tempString=new String[statusList.size()];
    statusCombo.setItems(statusArray.toArray(tempString));
    if (statusArray.contains(statusValue)) {
      statusCombo.remove(statusValue);
      statusCombo.add(statusValue,0);
    }
  }
 else {
    for (    DevelopmentStatus status : DevelopmentStatus.values()) {
      statusCombo.add(status.getLiteral());
    }
    statusCombo.add(statusValue,0);
  }
  initMetaTextFied();
  nameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      if (!isRefreshText) {
        modify=true;
        setDirty(true);
        String NAMECONNOTBEEMPTY=DefaultMessagesImpl.getString("String_Node_Str");
        if (PluginConstant.EMPTY_STRING.equals(nameText.getText())) {
          getManagedForm().getMessageManager().addMessage(NAMECONNOTBEEMPTY,NAMECONNOTBEEMPTY,null,IMessageProvider.ERROR,nameText);
        }
 else {
          getManagedForm().getMessageManager().removeMessage(NAMECONNOTBEEMPTY,nameText);
        }
      }
    }
  }
);
  purposeText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  descriptionText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  authorText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  statusCombo.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setDirty(true);
    }
  }
);
  addWhitespaceValidate(nameText,purposeText,descriptionText,authorText,purposeText);
  section.setClient(parent);
  return section;
}