Program: 119246
Project: 119246
Buggy source:
@Override public Control createControl(final Composite subComposite,final IElementParameter param,final int numInRow,final int nbInRow,final int top,final Control lastControl){
  this.curParameter=param;
  Button btnEdit=getWidgetFactory().createButton(subComposite,"String_Node_Str",SWT.PUSH);
  FormData data;
  btnEdit.setImage(ImageProvider.getImage(CoreUIPlugin.getImageDescriptor(DOTS_BUTTON)));
  data=new FormData();
  data.left=new FormAttachment(((numInRow * MAX_PERCENT) / nbInRow),-STANDARD_BUTTON_WIDTH);
  data.right=new FormAttachment(((numInRow * MAX_PERCENT) / nbInRow),0);
  data.top=new FormAttachment(0,top);
  data.height=STANDARD_HEIGHT - 2;
  btnEdit.setLayoutData(data);
  btnEdit.setData(NAME,DIRECTORY);
  btnEdit.setData(PARAMETER_NAME,param.getName());
  btnEdit.setEnabled(!param.isReadOnly());
  btnEdit.addSelectionListener(listenerSelection);
  DecoratedField dField=new DecoratedField(subComposite,SWT.BORDER,new SelectAllTextControlCreator());
  if (param.isRequired()) {
    FieldDecoration decoration=FieldDecorationRegistry.getDefault().getFieldDecoration(FieldDecorationRegistry.DEC_REQUIRED);
    dField.addFieldDecoration(decoration,SWT.RIGHT | SWT.TOP,false);
  }
  Control cLayout=dField.getLayoutControl();
  Text labelText=(Text)dField.getControl();
  cLayout.setBackground(subComposite.getBackground());
  if (!elem.isReadOnly()) {
    if (param.isRepositoryValueUsed()) {
      addRepositoryPropertyListener(labelText);
    }
    labelText.setEditable(!param.isReadOnly() && !param.isRepositoryValueUsed());
  }
 else {
    labelText.setEditable(false);
  }
  labelText.setData(PARAMETER_NAME,param.getName());
  editionControlHelper.register(param.getName(),labelText);
  addDragAndDropTarget(labelText);
  if (elem instanceof Node) {
    labelText.setToolTipText(VARIABLE_TOOLTIP + param.getVariableName());
  }
  CLabel labelLabel=getWidgetFactory().createCLabel(subComposite,param.getDisplayName());
  data=new FormData();
  if (lastControl != null) {
    data.left=new FormAttachment(lastControl,0);
  }
 else {
    data.left=new FormAttachment((((numInRow - 1) * MAX_PERCENT) / nbInRow),0);
  }
  data.top=new FormAttachment(0,top);
  labelLabel.setLayoutData(data);
  if (numInRow != 1) {
    labelLabel.setAlignment(SWT.RIGHT);
  }
  data=new FormData();
  int currentLabelWidth=STANDARD_LABEL_WIDTH;
  GC gc=new GC(labelLabel);
  Point labelSize=gc.stringExtent(param.getDisplayName());
  gc.dispose();
  if ((labelSize.x + ITabbedPropertyConstants.HSPACE) > currentLabelWidth) {
    currentLabelWidth=labelSize.x + ITabbedPropertyConstants.HSPACE;
  }
  if (numInRow == 1) {
    if (lastControl != null) {
      data.left=new FormAttachment(lastControl,currentLabelWidth);
    }
 else {
      data.left=new FormAttachment(0,currentLabelWidth);
    }
  }
 else {
    data.left=new FormAttachment(labelLabel,0,SWT.RIGHT);
  }
  data.right=new FormAttachment(btnEdit,0);
  data.top=new FormAttachment(btnEdit,0,SWT.CENTER);
  cLayout.setLayoutData(data);
  hashCurControls.put(param.getName(),labelText);
  Point initialSize=dField.getLayoutControl().computeSize(SWT.DEFAULT,SWT.DEFAULT);
  dynamicProperty.setCurRowSize(initialSize.y + ITabbedPropertyConstants.VSPACE);
  return btnEdit;
}

Fixed version (ground truth):
@Override public Control createControl(final Composite subComposite,final IElementParameter param,final int numInRow,final int nbInRow,final int top,final Control lastControl){
  this.curParameter=param;
  FormData data;
  CLabel labelLabel=getWidgetFactory().createCLabel(subComposite,param.getDisplayName());
  data=new FormData();
  if (lastControl != null) {
    data.left=new FormAttachment(lastControl,0);
  }
 else {
    data.left=new FormAttachment((((numInRow - 1) * MAX_PERCENT) / nbInRow),0);
  }
  data.top=new FormAttachment(0,top);
  labelLabel.setLayoutData(data);
  if (numInRow != 1) {
    labelLabel.setAlignment(SWT.RIGHT);
  }
  Button btnEdit=getWidgetFactory().createButton(subComposite,"String_Node_Str",SWT.PUSH);
  btnEdit.setImage(ImageProvider.getImage(CoreUIPlugin.getImageDescriptor(DOTS_BUTTON)));
  data=new FormData();
  data.left=new FormAttachment(((numInRow * MAX_PERCENT) / nbInRow),-STANDARD_BUTTON_WIDTH);
  data.right=new FormAttachment(((numInRow * MAX_PERCENT) / nbInRow),0);
  data.top=new FormAttachment(labelLabel,0,SWT.CENTER);
  data.height=STANDARD_HEIGHT - 2;
  btnEdit.setLayoutData(data);
  btnEdit.setData(NAME,DIRECTORY);
  btnEdit.setData(PARAMETER_NAME,param.getName());
  btnEdit.setEnabled(!param.isReadOnly());
  btnEdit.addSelectionListener(listenerSelection);
  DecoratedField dField=new DecoratedField(subComposite,SWT.BORDER,new SelectAllTextControlCreator());
  if (param.isRequired()) {
    FieldDecoration decoration=FieldDecorationRegistry.getDefault().getFieldDecoration(FieldDecorationRegistry.DEC_REQUIRED);
    dField.addFieldDecoration(decoration,SWT.RIGHT | SWT.TOP,false);
  }
  Control cLayout=dField.getLayoutControl();
  Text labelText=(Text)dField.getControl();
  cLayout.setBackground(subComposite.getBackground());
  if (!elem.isReadOnly()) {
    if (param.isRepositoryValueUsed()) {
      addRepositoryPropertyListener(labelText);
    }
    labelText.setEditable(!param.isReadOnly() && !param.isRepositoryValueUsed());
  }
 else {
    labelText.setEditable(false);
  }
  labelText.setData(PARAMETER_NAME,param.getName());
  editionControlHelper.register(param.getName(),labelText);
  addDragAndDropTarget(labelText);
  if (elem instanceof Node) {
    labelText.setToolTipText(VARIABLE_TOOLTIP + param.getVariableName());
  }
  data=new FormData();
  int currentLabelWidth=STANDARD_LABEL_WIDTH;
  GC gc=new GC(labelLabel);
  Point labelSize=gc.stringExtent(param.getDisplayName());
  gc.dispose();
  if ((labelSize.x + ITabbedPropertyConstants.HSPACE) > currentLabelWidth) {
    currentLabelWidth=labelSize.x + ITabbedPropertyConstants.HSPACE;
  }
  if (numInRow == 1) {
    if (lastControl != null) {
      data.left=new FormAttachment(lastControl,currentLabelWidth);
    }
 else {
      data.left=new FormAttachment(0,currentLabelWidth);
    }
  }
 else {
    data.left=new FormAttachment(labelLabel,0,SWT.RIGHT);
  }
  data.right=new FormAttachment(btnEdit,0);
  data.top=new FormAttachment(labelLabel,0,SWT.CENTER);
  cLayout.setLayoutData(data);
  hashCurControls.put(param.getName(),labelText);
  Point initialSize=dField.getLayoutControl().computeSize(SWT.DEFAULT,SWT.DEFAULT);
  dynamicProperty.setCurRowSize(initialSize.y + ITabbedPropertyConstants.VSPACE);
  return btnEdit;
}