nus-yam/ex-repair huggingface dataset:
Program: 118771
Project: 118771
Buggy source:
/** 
 * Store the current selected project&branch etc into context
 */
public static void setRepositoryContextInContext(ConnectionBean connBean,User user,Project project,String branch){
  Context ctx=CoreRuntimePlugin.getInstance().getContext();
  RepositoryContext repositoryContext=new RepositoryContext();
  ctx.putProperty(Context.REPOSITORY_CONTEXT_KEY,repositoryContext);
  repositoryContext.setUser(user);
  repositoryContext.setProject(project);
  String password="String_Node_Str";
  if (connBean != null) {
    repositoryContext.setFields(connBean.getDynamicFields());
    password=connBean.getPassword();
  }
  repositoryContext.setClearPassword(password);
  if (project != null) {
    ProjectManager.getInstance().setMainProjectBranch(project,branch);
  }
}

Fixed version (ground truth):
/** 
 * Store the current selected project&branch etc into context
 */
public static void setRepositoryContextInContext(ConnectionBean connBean,User user,Project project,String branch){
  Context ctx=CoreRuntimePlugin.getInstance().getContext();
  RepositoryContext repositoryContext=(RepositoryContext)ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
  if (repositoryContext == null) {
    repositoryContext=new RepositoryContext();
    ctx.putProperty(Context.REPOSITORY_CONTEXT_KEY,repositoryContext);
  }
  repositoryContext.setUser(user);
  repositoryContext.setProject(project);
  String password="String_Node_Str";
  if (connBean != null) {
    repositoryContext.setFields(connBean.getDynamicFields());
    password=connBean.getPassword();
  }
  repositoryContext.setClearPassword(password);
  if (project != null) {
    ProjectManager.getInstance().setMainProjectBranch(project,branch);
  }
}
Program: 118772
Project: 118772
Buggy source:
@Override public List<IComponent> filterNeededComponents(Item item,RepositoryNode seletetedNode,ERepositoryObjectType type){
  List<IComponent> neededComponents=new ArrayList<IComponent>();
  if (!(item instanceof GenericConnectionItem)) {
    return neededComponents;
  }
  IComponentsService service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
  Set<IComponent> components=service.getComponentsFactory().getComponents();
  for (  IComponent component : components) {
    if (EComponentType.GENERIC.equals(component.getComponentType())) {
      if (isValid(item,type,seletetedNode,component,SALESFORCE) && !neededComponents.contains(component)) {
        neededComponents.add(component);
      }
    }
  }
  return neededComponents;
}

Fixed version (ground truth):
@Override public List<IComponent> filterNeededComponents(Item item,RepositoryNode seletetedNode,ERepositoryObjectType type){
  List<IComponent> neededComponents=new ArrayList<IComponent>();
  if (!(item instanceof GenericConnectionItem)) {
    return neededComponents;
  }
  IComponentsService service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
  Set<IComponent> components=service.getComponentsFactory().getComponents();
  for (  IComponent component : components) {
    if (EComponentType.GENERIC.equals(component.getComponentType())) {
      if (isValid(item,type,seletetedNode,component,type.getType()) && !neededComponents.contains(component)) {
        neededComponents.add(component);
      }
    }
  }
  return neededComponents;
}
Program: 118773
Project: 118773
Buggy source:
private boolean isValid(Item item,ERepositoryObjectType type,RepositoryNode seletetedNode,IComponent component,String repositoryType){
  if (component == null || repositoryType == null) {
    return false;
  }
  String componentProductname=component.getRepositoryType();
  if (componentProductname != null && componentProductname.contains(repositoryType)) {
    String componentName=component.getName();
    if (ERepositoryObjectType.METADATA_SALESFORCE_MODULE == type || ERepositoryObjectType.METADATA_CON_TABLE == type || ERepositoryObjectType.METADATA_CON_COLUMN == type) {
      if (COMPONENT_T_SALSEFORCE_INPUT.equals(componentName) || COMPONENT_T_SALSEFORCE_OUTPUT.equals(componentName)) {
        return true;
      }
    }
 else {
      if (COMPONENT_T_SALSEFORCE_CONNECTION.equals(componentName) || COMPONENT_T_SALSEFORCE_WAVE_BULK_EXEC.equals(componentName) || COMPONENT_T_SALSEFORCE_WAVE_OUTPUT_BULK_EXEC.equals(componentName)) {
        return true;
      }
    }
  }
  return false;
}

Fixed version (ground truth):
private boolean isValid(Item item,ERepositoryObjectType type,RepositoryNode seletetedNode,IComponent component,String repositoryType){
  if (component == null || repositoryType == null) {
    return false;
  }
  String componentProductname=component.getRepositoryType();
  String typeName="String_Node_Str";
  if (item instanceof GenericConnectionItem) {
    typeName=((GenericConnectionItem)item).getTypeName();
  }
  if (componentProductname != null && componentProductname.contains(repositoryType) || componentProductname.contains(typeName)) {
    String componentName=component.getName();
    if (ERepositoryObjectType.METADATA_SALESFORCE_MODULE == type || ERepositoryObjectType.METADATA_CON_TABLE == type || ERepositoryObjectType.METADATA_CON_COLUMN == type) {
      if (COMPONENT_T_SALSEFORCE_INPUT.equals(componentName) || COMPONENT_T_SALSEFORCE_OUTPUT.equals(componentName)) {
        return true;
      }
    }
 else {
      if (COMPONENT_T_SALSEFORCE_CONNECTION.equals(componentName) || COMPONENT_T_SALSEFORCE_WAVE_BULK_EXEC.equals(componentName) || COMPONENT_T_SALSEFORCE_WAVE_OUTPUT_BULK_EXEC.equals(componentName)) {
        return true;
      }
    }
  }
  return false;
}
Program: 118774
Project: 118774
Buggy source:
private void update(){
  NamedThing[] widgetProperties=widget.getProperties();
  NamedThing widgetProperty=widgetProperties[0];
  if (widgetProperty instanceof SchemaElement) {
    SchemaElement se=(SchemaElement)widgetProperties[0];
    List<?> values=se.getPossibleValues();
    if (values != null) {
      this.setPossibleValues(values);
    }
  }
}

Fixed version (ground truth):
private void update(){
  SchemaElement property=componentProperties.getProperty(getParameterName());
  if (property != null) {
    List<?> values=property.getPossibleValues();
    if (values != null) {
      this.setPossibleValues(values);
    }
  }
}
Program: 118775
Project: 118775
Buggy source:
private void updateSchema(){
  Object schemaObj=ComponentsUtils.getGenericPropertyValue(componentProperties,"String_Node_Str");
  if (schemaObj != null && schemaObj instanceof Schema) {
    MetadataTable metadataTable=SchemaUtils.createSchema(String.valueOf(getValue()),componentProperties.toSerialized());
    SchemaUtils.convertComponentSchemaIntoTalendSchema((Schema)schemaObj,metadataTable);
    IMetadataTable newTable=MetadataToolHelper.convert(metadataTable);
    IElement element=this.getElement();
    if (element instanceof Node) {
      Node node=(Node)element;
      IMetadataTable oldTable=node.getMetadataList().get(0);
      if (!newTable.sameMetadataAs(oldTable)) {
        IElementParameter schemaParameter=node.getElementParameterFromField(EParameterFieldType.SCHEMA_TYPE);
        ChangeMetadataCommand cmd=new ChangeMetadataCommand(node,schemaParameter,oldTable,newTable,null);
        IProcess process=node.getProcess();
        if (process instanceof org.talend.designer.core.ui.editor.process.Process) {
          CommandStack commandStack=((org.talend.designer.core.ui.editor.process.Process)process).getCommandStack();
          commandStack.execute(cmd);
        }
      }
    }
  }
}

Fixed version (ground truth):
private void updateSchema(){
  Object schemaObj=ComponentsUtils.getGenericPropertyValue(componentProperties,"String_Node_Str");
  if (schemaObj != null && schemaObj instanceof Schema) {
    MetadataTable metadataTable=SchemaUtils.createSchema(String.valueOf(getValue()),componentProperties.toSerialized());
    SchemaUtils.convertComponentSchemaIntoTalendSchema((Schema)schemaObj,metadataTable);
    IMetadataTable newTable=MetadataToolHelper.convert(metadataTable);
    IElement element=this.getElement();
    if (element instanceof Node) {
      Node node=(Node)element;
      List<IMetadataTable> metadataList=node.getMetadataList();
      if (metadataList.size() > 0) {
        IMetadataTable oldTable=metadataList.get(0);
        if (!newTable.sameMetadataAs(oldTable)) {
          IElementParameter schemaParameter=node.getElementParameterFromField(EParameterFieldType.SCHEMA_TYPE);
          ChangeMetadataCommand cmd=new ChangeMetadataCommand(node,schemaParameter,oldTable,newTable,null);
          IProcess process=node.getProcess();
          if (process instanceof org.talend.designer.core.ui.editor.process.Process) {
            CommandStack commandStack=((org.talend.designer.core.ui.editor.process.Process)process).getCommandStack();
            commandStack.execute(cmd);
          }
        }
      }
    }
  }
}
Program: 118776
Project: 118776
Buggy source:
private void updateProperty(Object newValue){
  if (componentProperties == null) {
    return;
  }
  NamedThing[] widgetProperties=widget.getProperties();
  NamedThing widgetProperty=widgetProperties[0];
  if (widgetProperty instanceof SchemaElement) {
    SchemaElement se=(SchemaElement)widgetProperty;
    Object oldValue=componentProperties.getValue(se);
    if (newValue != null && !newValue.equals(oldValue)) {
      componentProperties.setValue(se,newValue);
      fireConnectionPropertyChangedEvent(newValue);
    }
  }
 else   if (widgetProperty instanceof PresentationItem) {
    PresentationItem pi=(PresentationItem)widgetProperty;
    Form formtoShow=pi.getFormtoShow();
    if (formtoShow != null) {
      fireShowDialogEvent(componentProperties.getForm(formtoShow.getName()));
    }
  }
}

Fixed version (ground truth):
private void updateProperty(Object newValue){
  if (componentProperties == null) {
    return;
  }
  NamedThing[] widgetProperties=widget.getProperties();
  NamedThing widgetProperty=widgetProperties[0];
  if (widgetProperty instanceof SchemaElement) {
    SchemaElement se=(SchemaElement)widgetProperty;
    Object oldValue=componentProperties.getValue(se);
    if (newValue != null && !newValue.equals(oldValue)) {
      se=componentProperties.getProperty(se.getName());
      componentProperties.setValue(se,newValue);
      fireConnectionPropertyChangedEvent(newValue);
    }
  }
 else   if (widgetProperty instanceof PresentationItem) {
    PresentationItem pi=(PresentationItem)widgetProperty;
    Form formtoShow=pi.getFormtoShow();
    if (formtoShow != null) {
      fireShowDialogEvent(componentProperties.getForm(formtoShow.getName()));
    }
  }
}
Program: 118777
Project: 118777
Buggy source:
public Command createCommand(Button button){
  List<NameAndLabel> nals=new ArrayList<>();
  if (curParameter instanceof GenericElementParameter) {
    GenericElementParameter gParam=(GenericElementParameter)curParameter;
    if (gParam != null) {
      gParam.callBeforeActivate();
      List<?> possibleValues=gParam.getPossibleValues();
      if (possibleValues != null) {
        for (        Object object : possibleValues) {
          if (object instanceof NameAndLabel) {
            nals.add((NameAndLabel)object);
          }
        }
      }
    }
  }
  NameAndLabelsDialog nameAndLabelsDialog=new NameAndLabelsDialog(composite.getShell(),nals);
  if (nameAndLabelsDialog.open() == IDialogConstants.OK_ID) {
    String result=nameAndLabelsDialog.getResult();
    curParameter.setValue(result);
    String propertyName=(String)button.getData(PARAMETER_NAME);
    Text moduleText=(Text)hashCurControls.get(propertyName);
    moduleText.setText(result);
  }
  return null;
}

Fixed version (ground truth):
public Command createCommand(Button button){
  List<NameAndLabel> nals=new ArrayList<>();
  if (curParameter instanceof GenericElementParameter) {
    GenericElementParameter gParam=(GenericElementParameter)curParameter;
    if (gParam != null) {
      gParam.callBeforeActivate();
      List<?> possibleValues=gParam.getPossibleValues();
      if (possibleValues != null) {
        for (        Object object : possibleValues) {
          if (object instanceof NameAndLabel) {
            nals.add((NameAndLabel)object);
          }
        }
      }
    }
  }
  NameAndLabelsDialog nameAndLabelsDialog=new NameAndLabelsDialog(composite.getShell(),nals);
  if (nameAndLabelsDialog.open() == IDialogConstants.OK_ID) {
    String propertyName=(String)button.getData(PARAMETER_NAME);
    String result=nameAndLabelsDialog.getResult();
    Text moduleText=(Text)hashCurControls.get(propertyName);
    moduleText.setText(result);
    curParameter.setValue(result);
  }
  return null;
}
Program: 118778
Project: 118778
Buggy source:
@Override public void refresh(IElementParameter param,boolean checkErrorsWhenViewRefreshed){
  final String name=param.getName();
  Text labelText=(Text)hashCurControls.get(name);
  Object value=param.getValue();
  if (labelText == null || labelText.isDisposed()) {
    return;
  }
  boolean valueChanged=false;
  if (value == null) {
    labelText.setText("String_Node_Str");
  }
 else {
    if (!value.equals(labelText.getText())) {
      labelText.setText((String)value);
      valueChanged=true;
    }
  }
  if (checkErrorsWhenViewRefreshed || valueChanged) {
    checkErrorsForPropertiesOnly(labelText);
  }
  fixedCursorPosition(param,labelText,value,valueChanged);
}

Fixed version (ground truth):
@Override public void refresh(IElementParameter param,boolean checkErrorsWhenViewRefreshed){
  final String name=param.getName();
  Text labelText=(Text)hashCurControls.get(name);
  Object value=param.getValue();
  if (labelText == null || labelText.isDisposed()) {
    return;
  }
  boolean valueChanged=false;
  if (value == null) {
    labelText.setText("String_Node_Str");
  }
 else {
    if (!value.equals(labelText.getText())) {
      labelText.setText((String)value);
      valueChanged=true;
    }
  }
  if (checkErrorsWhenViewRefreshed || valueChanged) {
    checkErrorsForPropertiesOnly(labelText);
  }
}
Program: 118782
Project: 118782
Buggy source:
protected Object createComponent(IComponent component,org.eclipse.swt.graphics.Point location){
  if (component == null) {
    return null;
  }
  Object newNode;
  Event e=new Event();
  e.x=location.x;
  e.y=location.y;
  e.button=1;
  e.count=1;
  e.stateMask=0;
  e.widget=graphicControl;
  MouseEvent mouseEvent=new MouseEvent(e);
  if (component.getName().toLowerCase().equals("String_Node_Str")) {
    newNode=new Note();
    CreateNoteCommand command=new CreateNoteCommand((Process)process,(Note)newNode,new Point(e.x,e.y));
    command.execute();
    return newNode;
  }
  TalendAssistantCreationTool creationTool=new TalendAssistantCreationTool(new PaletteComponentFactory(component));
  newNode=creationTool.getCreateRequest().getNewObject();
  if (!canCreateAt(newNode,new Point(e.x,e.y))) {
    return null;
  }
  creationTool.mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().setActiveTool(creationTool);
  graphicViewer.getEditDomain().mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseDown(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseUp(mouseEvent,graphicViewer);
  return newNode;
}

Fixed version (ground truth):
protected Object createComponent(IComponent component,org.eclipse.swt.graphics.Point location){
  if (component == null) {
    return null;
  }
  Object newNode;
  Event e=new Event();
  e.x=location.x;
  e.y=location.y;
  e.button=1;
  e.count=1;
  e.stateMask=0;
  e.widget=graphicControl;
  MouseEvent mouseEvent=new MouseEvent(e);
  TalendAssistantCreationTool creationTool=new TalendAssistantCreationTool(new PaletteComponentFactory(component));
  newNode=creationTool.getCreateRequest().getNewObject();
  if (!canCreateAt(newNode,new Point(e.x,e.y))) {
    return null;
  }
  creationTool.mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().setActiveTool(creationTool);
  graphicViewer.getEditDomain().mouseMove(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseDown(mouseEvent,graphicViewer);
  graphicViewer.getEditDomain().mouseUp(mouseEvent,graphicViewer);
  return newNode;
}
Program: 118784
Project: 118784
Buggy source:
@Override public Object getNewObject(){
  return new Node(component);
}

Fixed version (ground truth):
@Override public Object getNewObject(){
  String componentName=null;
  if (component != null) {
    componentName=component.getName();
  }
  if (componentName != null && componentName.toLowerCase().equals("String_Node_Str")) {
    return new Note();
  }
 else {
    return new Node(component);
  }
}
Program: 118785
Project: 118785
Buggy source:
private String getParameterName(){
  String paramName=getName();
  if (paramName.indexOf(IComponentConstants.UNDERLINE_SEPARATOR) != -1) {
    paramName=paramName.substring(paramName.lastIndexOf(IComponentConstants.UNDERLINE_SEPARATOR) + 1);
  }
  return paramName;
}

Fixed version (ground truth):
private String getParameterName(){
  String paramName=getName();
  if (paramName.indexOf(IComponentConstants.UNDERLINE_SEPARATOR) != -1) {
    paramName=paramName.substring(paramName.lastIndexOf(IComponentConstants.UNDERLINE_SEPARATOR) + 1);
  }
  ComponentProperties currentComponentProperties=ComponentsUtils.getCurrentComponentProperties(componentProperties,paramName);
  if (currentComponentProperties == null) {
    if (paramName.startsWith(componentProperties.getName())) {
      paramName=ComponentsUtils.getPropertyName(paramName);
    }
  }
  return paramName;
}
Program: 118786
Project: 118786
Buggy source:
public String getCodegenValue(SchemaElement property,String value){
  if (property.getType() == SchemaElement.Type.ENUM) {
    return "String_Node_Str" + value + "String_Node_Str";
  }
  return value;
}

Fixed version (ground truth):
public String getCodegenValue(SchemaElement property,String value){
  if (property.getType() == SchemaElement.Type.ENUM) {
    return "String_Node_Str" + value + "String_Node_Str";
  }
  if (property.getType() == SchemaElement.Type.SCHEMA) {
    return "String_Node_Str" + value.replace("String_Node_Str","String_Node_Str") + "String_Node_Str";
  }
  return value;
}
Program: 118787
Project: 118787
Buggy source:
protected void paintGrid(Graphics g,IFigure f,org.eclipse.draw2d.geometry.Point origin,int distanceX,int distanceY){
  FreeformFigure ff=(FreeformFigure)this.getParent();
  Rectangle clientArea=getClientArea();
  Rectangle bounds=ff.getFreeformExtent().getCopy();
  bounds.union(0,0,clientArea.width,clientArea.height);
  ff.setFreeformBounds(bounds);
  Rectangle original=g.getClip(Rectangle.SINGLETON);
  Rectangle clip=new Rectangle(original.x - original.x % distanceX,original.y - original.y % distanceY,original.width + Math.abs(original.x % distanceX),original.height + Math.abs(original.y % distanceY));
  if (distanceX > 0 && distanceY > 0) {
    if (origin.x >= clip.x) {
      while (origin.x - distanceX >= clip.x) {
        origin.x-=distanceX;
      }
    }
 else {
      while (origin.x < clip.x) {
        origin.x+=distanceX;
      }
    }
    if (origin.y >= clip.y) {
      while (origin.y - distanceY >= clip.y) {
        origin.y-=distanceY;
      }
    }
 else {
      while (origin.y < clip.y) {
        origin.y+=distanceY;
      }
    }
    for (int i=origin.x; i < clip.x + clip.width; i+=distanceX) {
      for (int j=origin.y; j < clip.y + clip.height; j+=distanceY) {
        int re=Math.abs(i - j);
        if (re / distanceY % 2 == 0) {
          g.drawImage(ImageProvider.getImage(EImage.CHESS_GRAY),i,j);
        }
      }
    }
  }
}

Fixed version (ground truth):
protected void paintGrid(Graphics g,IFigure f,org.eclipse.draw2d.geometry.Point origin,int distanceX,int distanceY){
  FreeformFigure ff=(FreeformFigure)this.getParent();
  Rectangle clientArea=getClientArea();
  Rectangle bounds=ff.getFreeformExtent().getCopy();
  bounds.union(clientArea.x,clientArea.y,clientArea.width,clientArea.height);
  ff.setFreeformBounds(bounds);
  Rectangle original=g.getClip(Rectangle.SINGLETON);
  Rectangle clip=new Rectangle(original.x - original.x % distanceX,original.y - original.y % distanceY,original.width + Math.abs(original.x % distanceX),original.height + Math.abs(original.y % distanceY));
  if (distanceX > 0 && distanceY > 0) {
    if (origin.x >= clip.x) {
      while (origin.x - distanceX >= clip.x) {
        origin.x-=distanceX;
      }
    }
 else {
      while (origin.x < clip.x) {
        origin.x+=distanceX;
      }
    }
    if (origin.y >= clip.y) {
      while (origin.y - distanceY >= clip.y) {
        origin.y-=distanceY;
      }
    }
 else {
      while (origin.y < clip.y) {
        origin.y+=distanceY;
      }
    }
    for (int i=origin.x; i < clip.x + clip.width; i+=distanceX) {
      for (int j=origin.y; j < clip.y + clip.height; j+=distanceY) {
        int re=Math.abs(i - j);
        if (re / distanceY % 2 == 0) {
          g.drawImage(ImageProvider.getImage(EImage.CHESS_GRAY),i,j);
        }
      }
    }
  }
}
Program: 118788
Project: 118788
Buggy source:
public JobletContainer(Node node){
  super(node);
  this.node=node;
}

Fixed version (ground truth):
public JobletContainer(Node node){
  super(node);
  this.node=node;
  if (this.getProcess() != null) {
    Project refProject=ProjectManager.getInstance().getProject(this.getProcess().getProperty().getItem());
    if (!ProjectManager.getInstance().isInCurrentMainProject(refProject)) {
      fromRef=true;
    }
  }
}
Program: 118789
Project: 118789
Buggy source:
/** 
 * DOC nrousseau Comment method "refreshForJoblet".
 */
private void refreshForJoblet(){
  boolean isRed=new JobletUtil().isRed(this.jobletContainer);
  Project refProject=ProjectManager.getInstance().getProject(this.jobletContainer.getProcess().getProperty().getItem());
  if (!ProjectManager.getInstance().isInCurrentMainProject(refProject)) {
    if (!this.jobletContainer.isCollapsed()) {
      isRed=true;
    }
  }
  if (this.jobletContainer.isCollapsed() && lastJobletRedState == isRed) {
    return;
  }
  lastJobletRedState=isRed;
  if (isSubjobDisplay) {
    if (isRed && rectFig != null) {
      rectFig.setBackgroundColor(ColorUtils.getCacheColor(red));
    }
 else     if (rectFig != null) {
      rectFig.setBackgroundColor(ColorUtils.getCacheColor(green));
    }
  }
 else {
    if (rectFig != null) {
      rectFig.setBackgroundColor(ColorUtils.getCacheColor(white));
    }
  }
  if (isRed && outlineFigure != null) {
    outlineFigure.setBackgroundColor(ColorUtils.getCacheColor(red));
  }
 else   if (outlineFigure != null) {
    outlineFigure.setBackgroundColor(ColorUtils.getCacheColor(green));
  }
  if (!jobletContainer.isCollapsed()) {
    for (    Object ele : jobletContainer.getElements()) {
      if (ele instanceof Node) {
        ((Node)ele).setReadOnly(isRed);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC nrousseau Comment method "refreshForJoblet".
 */
private void refreshForJoblet(){
  boolean isRed=new JobletUtil().isRed(this.jobletContainer);
  if (jobletContainer.isFromRef() && !this.jobletContainer.isCollapsed()) {
    isRed=true;
  }
  if (this.jobletContainer.isCollapsed() && lastJobletRedState == isRed) {
    return;
  }
  lastJobletRedState=isRed;
  if (isSubjobDisplay) {
    if (isRed && rectFig != null) {
      rectFig.setBackgroundColor(ColorUtils.getCacheColor(red));
    }
 else     if (rectFig != null) {
      rectFig.setBackgroundColor(ColorUtils.getCacheColor(green));
    }
  }
 else {
    if (rectFig != null) {
      rectFig.setBackgroundColor(ColorUtils.getCacheColor(white));
    }
  }
  if (isRed && outlineFigure != null) {
    outlineFigure.setBackgroundColor(ColorUtils.getCacheColor(red));
  }
 else   if (outlineFigure != null) {
    outlineFigure.setBackgroundColor(ColorUtils.getCacheColor(green));
  }
  if (!jobletContainer.isCollapsed()) {
    for (    Object ele : jobletContainer.getElements()) {
      if (ele instanceof Node) {
        ((Node)ele).setReadOnly(isRed);
      }
    }
  }
}
Program: 118791
Project: 118791
Buggy source:
@Override public String getTranslatedFamilyName(){
  String[] families=componentDefinition.getSupportedFamilies();
  StringBuffer sb=new StringBuffer();
  for (  String familyName : families) {
    if (sb.length() > 0) {
      sb.append("String_Node_Str");
    }
    sb.append(familyName);
  }
  return sb.toString();
}

Fixed version (ground truth):
@Override public String getTranslatedFamilyName(){
  String[] families=componentDefinition.getFamilies();
  StringBuffer sb=new StringBuffer();
  for (  String familyName : families) {
    if (sb.length() > 0) {
      sb.append("String_Node_Str");
    }
    sb.append(familyName);
  }
  return sb.toString();
}
Program: 118792
Project: 118792
Buggy source:
@Override public String getOriginalFamilyName(){
  String[] families=componentDefinition.getSupportedFamilies();
  StringBuffer sb=new StringBuffer();
  for (  String familyName : families) {
    if (sb.length() > 0) {
      sb.append("String_Node_Str");
    }
    sb.append(familyName);
  }
  return sb.toString();
}

Fixed version (ground truth):
@Override public String getOriginalFamilyName(){
  String[] families=componentDefinition.getFamilies();
  StringBuffer sb=new StringBuffer();
  for (  String familyName : families) {
    if (sb.length() > 0) {
      sb.append("String_Node_Str");
    }
    sb.append(familyName);
  }
  return sb.toString();
}
Program: 118794
Project: 118794
Buggy source:
public List<ElementParameter> resetParameters(){
  List<ElementParameter> parameters=ComponentsUtils.getParametersFromForm(element,null,form,null,null);
  for (  ElementParameter parameter : parameters) {
    if (parameter instanceof GenericElementParameter) {
      GenericElementParameter genericElementParameter=(GenericElementParameter)parameter;
      genericElementParameter.callBeforePresent();
      genericElementParameter.addPropertyChangeListener(this);
    }
  }
  parameters.add(getUpdateParameter());
  element.setElementParameters(parameters);
  setupComponentProperties();
  return parameters;
}

Fixed version (ground truth):
public List<ElementParameter> resetParameters(){
  List<ElementParameter> parameters=ComponentsUtils.getParametersFromForm(element,null,form,null,null);
  for (  ElementParameter parameter : parameters) {
    if (parameter instanceof GenericElementParameter) {
      GenericElementParameter genericElementParameter=(GenericElementParameter)parameter;
      genericElementParameter.addPropertyChangeListener(this);
    }
  }
  parameters.add(getUpdateParameter());
  element.setElementParameters(parameters);
  setupComponentProperties();
  return parameters;
}
Program: 118795
Project: 118795
Buggy source:
private void setupComponentProperties(){
  if (connectionItem != null) {
    Connection connection=connectionItem.getConnection();
    if (connection instanceof GenericConnection) {
      GenericConnection genericConnection=(GenericConnection)connection;
      genericConnection.setCompProperties(form.getProperties().toSerialized());
    }
  }
}

Fixed version (ground truth):
private void setupComponentProperties(){
  if (connectionItem != null) {
    Connection connection=connectionItem.getConnection();
    if (connection instanceof GenericConnection) {
      GenericConnection genericConnection=(GenericConnection)connection;
      genericConnection.setCompProperties(form.getComponentProperties().toSerialized());
    }
  }
}
Program: 118797
Project: 118797
Buggy source:
@Override public boolean performFinish(){
  if (wizPage.isPageComplete()) {
    IWizardPage[] pages=getPages();
    for (    IWizardPage page : pages) {
      if (page instanceof GenericConnWizardPage) {
        GenericConnWizardPage gPage=(GenericConnWizardPage)page;
        parameters.addAll(gPage.getParameters());
      }
    }
    try {
      final IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
      Form form=wizPage.getForm();
      if (form.isCallAfterFormFinish()) {
        if (creation) {
          factory.create(connectionItem,new Path("String_Node_Str"));
        }
        compService.afterFormFinish(form.getName(),form.getProperties());
      }
      if (!creation) {
        GenericUpdateManager.updateGenericConnection(connectionItem);
      }
      updateConnectionItem();
    }
 catch (    Throwable e) {
      new ErrorDialogWidthDetailArea(getShell(),IGenericConstants.PLUGIN_ID,Messages.getString("String_Node_Str"),ExceptionUtils.getFullStackTrace(e));
      ExceptionHandler.process(e);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean performFinish(){
  if (wizPage.isPageComplete()) {
    IWizardPage[] pages=getPages();
    for (    IWizardPage page : pages) {
      if (page instanceof GenericConnWizardPage) {
        GenericConnWizardPage gPage=(GenericConnWizardPage)page;
        parameters.addAll(gPage.getParameters());
      }
    }
    try {
      final IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
      Form form=wizPage.getForm();
      if (form.isCallAfterFormFinish()) {
        if (creation) {
          factory.create(connectionItem,new Path("String_Node_Str"));
        }
        compService.afterFormFinish(form.getName(),form.getComponentProperties());
      }
      if (!creation) {
        GenericUpdateManager.updateGenericConnection(connectionItem);
      }
      updateConnectionItem();
    }
 catch (    Throwable e) {
      new ErrorDialogWidthDetailArea(getShell(),IGenericConstants.PLUGIN_ID,Messages.getString("String_Node_Str"),ExceptionUtils.getFullStackTrace(e));
      ExceptionHandler.process(e);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}
Program: 118798
Project: 118798
Buggy source:
private void init(){
  if (form.isCallBeforeFormPresent()) {
    try {
      componentService.beforeFormPresent(form.getName(),form.getProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  dynamicComposite.resetParameters();
  dynamicComposite.refresh();
}

Fixed version (ground truth):
private void init(){
  if (form.isCallBeforeFormPresent()) {
    try {
      componentService.beforeFormPresent(form.getName(),form.getComponentProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  dynamicComposite.resetParameters();
  dynamicComposite.refresh();
}
Program: 118799
Project: 118799
Buggy source:
@Override protected void okPressed(){
  if (form.isCallAfterFormFinish()) {
    try {
      componentService.afterFormFinish(form.getName(),form.getProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  super.okPressed();
}

Fixed version (ground truth):
@Override protected void okPressed(){
  if (form.isCallAfterFormFinish()) {
    try {
      componentService.afterFormFinish(form.getName(),form.getComponentProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  super.okPressed();
}
Program: 118800
Project: 118800
Buggy source:
@Override protected void nextPressed(){
  Form form=getForm();
  if (form != null && form.isCallAfterFormNext()) {
    try {
      compService.afterFormNext(form.getName(),form.getProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  super.nextPressed();
}

Fixed version (ground truth):
@Override protected void nextPressed(){
  Form form=getForm();
  if (form != null && form.isCallAfterFormNext()) {
    try {
      compService.afterFormNext(form.getName(),form.getComponentProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  super.nextPressed();
}
Program: 118801
Project: 118801
Buggy source:
@Override protected void backPressed(){
  Form form=getForm();
  if (form != null && form.isCallAfterFormBack()) {
    try {
      compService.afterFormBack(form.getName(),form.getProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  super.backPressed();
}

Fixed version (ground truth):
@Override protected void backPressed(){
  Form form=getForm();
  if (form != null && form.isCallAfterFormBack()) {
    try {
      compService.afterFormBack(form.getName(),form.getComponentProperties());
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  super.backPressed();
}
Program: 118802
Project: 118802
Buggy source:
private boolean callBefore(){
  if (form.isCallBeforeFormPresent()) {
    try {
      compService.beforeFormPresent(form.getName(),form.getProperties());
      return true;
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  return false;
}

Fixed version (ground truth):
private boolean callBefore(){
  if (form.isCallBeforeFormPresent()) {
    try {
      compService.beforeFormPresent(form.getName(),form.getComponentProperties());
      return true;
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  return false;
}
Program: 118805
Project: 118805
Buggy source:
@Override public void checkNode(){
  if (isActivate()) {
    checkParameters();
    checkSchema();
    checkLinks();
    checkModules();
    checkMultiComponents();
    checkStartLinks();
    checkParallelizeStates();
    checkWindowStates();
    checkHasMultiPrejobOrPostJobComponents();
    checkTRunjobwithMRProcess();
    checkNodeProblems();
    List<ICheckNodesService> checkNodeServices=CheckNodeManager.getCheckNodesService();
    for (    ICheckNodesService checkService : checkNodeServices) {
      checkService.checkNode(this);
    }
    if (externalNode != null) {
      List<Problem> problems=externalNode.getProblems();
      if (problems != null) {
        for (        Problem current : problems) {
          current.setElement(this);
          Problems.add(current);
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override public void checkNode(){
  if (isActivate()) {
    checkParameters();
    checkSchema();
    checkLinks();
    checkModules();
    checkMultiComponents();
    checkStartLinks();
    checkParallelizeStates();
    checkWindowStates();
    checkHasMultiPrejobOrPostJobComponents();
    checkTRunjobwithMRProcess();
    checkNodeProblems();
    List<ICheckNodesService> checkNodeServices=CheckNodeManager.getCheckNodesService();
    for (    ICheckNodesService checkService : checkNodeServices) {
      checkService.checkNode(this);
    }
    IExternalNode iExternalNode=getExternalNode();
    if (iExternalNode != null) {
      List<Problem> problems=iExternalNode.getProblems();
      if (problems != null) {
        for (        Problem current : problems) {
          current.setElement(this);
          Problems.add(current);
        }
      }
    }
  }
}
Program: 118806
Project: 118806
Buggy source:
@Override public void run(){
  IStructuredSelection selection=(IStructuredSelection)selectionProvider.getSelection();
  RepositoryNode firstNode=(RepositoryNode)selection.getFirstElement();
  if (firstNode.getProperties(EProperties.CONTENT_TYPE) == RepositoryNodeType.FOLDER) {
    firstNode=repositoryNodeManager.getRepositoryNodebyName(connParam.getRepositoryName());
  }
  List<String> repositoryNames=repositoryNodeManager.getALLReposotoryNodeNames();
  IRepositoryViewObject object=SQLBuilderRepositoryNodeManager.getRoot(firstNode).getObject();
  connParam.setRepositoryName(object.getLabel());
  connParam.setRepositoryId(object.getId());
  connParam.setFirstOpenSqlBuilder(false);
  if (isQuery) {
    DBTreeProvider provider=(DBTreeProvider)selectionProvider.getContentProvider();
    selectReveal(provider.getSelectedExtReposiotryNode());
    isQuery=false;
  }
 else {
    connParam.setEditorTitle(TextUtil.getNewQueryLabel());
    connParam.setQueryObject(null);
  }
  dialog.openEditor(firstNode,repositoryNames,connParam,false);
}

Fixed version (ground truth):
@Override public void run(){
  IStructuredSelection selection=(IStructuredSelection)selectionProvider.getSelection();
  RepositoryNode firstNode=(RepositoryNode)selection.getFirstElement();
  if (firstNode.getProperties(EProperties.CONTENT_TYPE) == RepositoryNodeType.FOLDER) {
    firstNode=repositoryNodeManager.getRepositoryNodebyName(connParam.getRepositoryName());
  }
  List<String> repositoryNames=repositoryNodeManager.getALLReposotoryNodeNames();
  IRepositoryViewObject object=SQLBuilderRepositoryNodeManager.getRoot(firstNode).getObject();
  connParam.setRepositoryName(object.getLabel());
  connParam.setRepositoryId(object.getId());
  connParam.setFirstOpenSqlBuilder(false);
  if (isQuery) {
    DBTreeProvider provider=(DBTreeProvider)selectionProvider.getContentProvider();
    selectReveal(provider.getSelectedExtReposiotryNode());
    isQuery=false;
  }
 else {
    connParam.setEditorTitle(TextUtil.getNewQueryLabel());
  }
  dialog.openEditor(firstNode,repositoryNames,connParam,false);
}
Program: 118807
Project: 118807
Buggy source:
@SuppressWarnings("String_Node_Str") private void fillContextMenu(IMenuManager manager){
  manager.add(generateSelectAction);
  builderDialog.getConnParameters().setQuery("String_Node_Str");
  manager.add(openNewEditorAction);
  manager.add(separator);
  ((RefreshConnectionAction)refreshConnectionAction).init();
  manager.add(refreshConnectionAction);
  manager.add(separator);
  manager.add(metadataRefreshAction);
  manager.add(separator);
  manager.add(openQueryAction);
  manager.add(deleteQueryAction);
  manager.add(showQueryPropertyAction);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private void fillContextMenu(IMenuManager manager){
  manager.add(generateSelectAction);
  builderDialog.getConnParameters().setQueryObject(null);
  manager.add(openNewEditorAction);
  manager.add(separator);
  ((RefreshConnectionAction)refreshConnectionAction).init();
  manager.add(refreshConnectionAction);
  manager.add(separator);
  manager.add(metadataRefreshAction);
  manager.add(separator);
  manager.add(openQueryAction);
  manager.add(deleteQueryAction);
  manager.add(showQueryPropertyAction);
}
Program: 118808
Project: 118808
Buggy source:
/** 
 */
private void addContextMenu(){
  MenuManager menuMgr=new MenuManager("String_Node_Str");
  menuMgr.setRemoveAllWhenShown(true);
  menuMgr.addMenuListener(new IMenuListener(){
    @Override public void menuAboutToShow(    IMenuManager manager){
      fillContextMenu(manager);
    }
    @SuppressWarnings("String_Node_Str") private void fillContextMenu(    IMenuManager manager){
      manager.add(generateSelectAction);
      builderDialog.getConnParameters().setQuery("String_Node_Str");
      manager.add(openNewEditorAction);
      manager.add(separator);
      ((RefreshConnectionAction)refreshConnectionAction).init();
      manager.add(refreshConnectionAction);
      manager.add(separator);
      manager.add(metadataRefreshAction);
      manager.add(separator);
      manager.add(openQueryAction);
      manager.add(deleteQueryAction);
      manager.add(showQueryPropertyAction);
    }
  }
);
  Menu contextMenu=menuMgr.createContextMenu(treeViewer.getTree());
  treeViewer.getTree().setMenu(contextMenu);
}

Fixed version (ground truth):
/** 
 */
private void addContextMenu(){
  MenuManager menuMgr=new MenuManager("String_Node_Str");
  menuMgr.setRemoveAllWhenShown(true);
  menuMgr.addMenuListener(new IMenuListener(){
    @Override public void menuAboutToShow(    IMenuManager manager){
      fillContextMenu(manager);
    }
    @SuppressWarnings("String_Node_Str") private void fillContextMenu(    IMenuManager manager){
      manager.add(generateSelectAction);
      builderDialog.getConnParameters().setQueryObject(null);
      manager.add(openNewEditorAction);
      manager.add(separator);
      ((RefreshConnectionAction)refreshConnectionAction).init();
      manager.add(refreshConnectionAction);
      manager.add(separator);
      manager.add(metadataRefreshAction);
      manager.add(separator);
      manager.add(openQueryAction);
      manager.add(deleteQueryAction);
      manager.add(showQueryPropertyAction);
    }
  }
);
  Menu contextMenu=menuMgr.createContextMenu(treeViewer.getTree());
  treeViewer.getTree().setMenu(contextMenu);
}
Program: 118809
Project: 118809
Buggy source:
public abstract void setName(String revisionNumStr);

Fixed version (ground truth):
public void setName(String revisionNum){
  setName();
  String label=getEditorInput().getName();
  String jobVersion=this.getProcess().getVersion();
  setPartName(Messages.getString("String_Node_Str",label,jobVersion) + revisionNum);
  revisionNumStr=revisionNum;
}
Program: 118810
Project: 118810
Buggy source:
public void setName(String revisionNum){
  super.setName();
  String label=getEditorInput().getName();
  String jobVersion=this.getProcess().getVersion();
  setPartName(Messages.getString("String_Node_Str",label,jobVersion) + revisionNum);
  revisionNumStr=revisionNum;
}

Fixed version (ground truth):
/** 
 * DOC smallet Comment method "setName".
 * @param label
 */
@Override public void setName(){
  if (getEditorInput() == null) {
    return;
  }
  super.setName();
  IProcess2 process2=this.getProcess();
  if (process2 == null) {
    return;
  }
  Property property=process2.getProperty();
  if (property == null) {
    return;
  }
  String label=property.getDisplayName();
  String jobVersion="String_Node_Str";
  if (process2 != null) {
    jobVersion=process2.getVersion();
  }
  ISVNProviderService service=null;
  if (PluginChecker.isSVNProviderPluginLoaded()) {
    service=(ISVNProviderService)GlobalServiceRegister.getDefault().getService(ISVNProviderService.class);
    if (revisionChanged && service.isProjectInSvnMode()) {
      revisionNumStr=service.getCurrentSVNRevision(process2);
      revisionChanged=false;
      if (revisionNumStr != null) {
        revisionNumStr="String_Node_Str" + revisionNumStr;
      }
    }
  }
  String title="String_Node_Str";
  if (process2 != null) {
    Item item=process2.getProperty().getItem();
    if (item instanceof JobletProcessItem) {
      title="String_Node_Str";
    }
  }
  IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
  boolean allowVerchange=brandingService.getBrandingConfiguration().isAllowChengeVersion();
  if (allowVerchange) {
    if (revisionNumStr != null) {
      setPartName(Messages.getString(title,label,jobVersion) + revisionNumStr);
    }
 else {
      setPartName(Messages.getString(title,label,jobVersion));
    }
  }
 else {
    if (revisionNumStr != null) {
      setPartName(Messages.getString(title,label,"String_Node_Str") + revisionNumStr);
    }
 else {
      setPartName(Messages.getString(title,label,"String_Node_Str"));
    }
  }
}
Program: 118813
Project: 118813
Buggy source:
private void fireShowDialogEvent(Form formToDisplay){
  this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_SHOW_DIALOG,null,formToDisplay);
}

Fixed version (ground truth):
private void fireShowDialogEvent(Form formToDisplay){
  if (hasPropertyChangeListener()) {
    this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_SHOW_DIALOG,null,formToDisplay);
  }
}
Program: 118814
Project: 118814
Buggy source:
private void fireValueChangedEvent(){
  List<Form> forms=componentProperties.getForms();
  for (  Form form : forms) {
    if (form.isRefreshUI()) {
      this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_PROPERTY_VALUE_CHANGED,null,null);
      return;
    }
  }
}

Fixed version (ground truth):
private void fireValueChangedEvent(){
  if (hasPropertyChangeListener()) {
    List<Form> forms=componentProperties.getForms();
    for (    Form form : forms) {
      if (form.isRefreshUI()) {
        this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_PROPERTY_VALUE_CHANGED,null,null);
        return;
      }
    }
  }
}
Program: 118815
Project: 118815
Buggy source:
@Override public void setValue(Object o){
  super.setValue(o);
  if (!isFirstCall && pcs.getPropertyChangeListeners().length != 0) {
    updateProperty(o);
    boolean calledValidate=callValidate();
    if (calledValidate) {
      fireValidateStatusEvent();
    }
    boolean calledAfter=callAfter();
    if (calledAfter) {
      fireValueChangedEvent();
    }
  }
  isFirstCall=false;
}

Fixed version (ground truth):
@Override public void setValue(Object o){
  super.setValue(o);
  if (!isFirstCall) {
    updateProperty(o);
    boolean calledValidate=callValidate();
    if (calledValidate) {
      fireValidateStatusEvent();
    }
    boolean calledAfter=callAfter();
    if (calledAfter) {
      fireValueChangedEvent();
    }
  }
  isFirstCall=false;
}
Program: 118816
Project: 118816
Buggy source:
private void fireValidateStatusEvent(){
  this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_VALIDATE_RESULT_UPDATE,null,componentProperties.getValidationResult());
}

Fixed version (ground truth):
private void fireValidateStatusEvent(){
  if (hasPropertyChangeListener()) {
    this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_VALIDATE_RESULT_UPDATE,null,componentProperties.getValidationResult());
  }
}
Program: 118817
Project: 118817
Buggy source:
@Override public Composite creatDynamicComposite(Composite composite,Element element,EComponentCategory sectionCategory,boolean isCompactView){
  DynamicComposite dynamicComposite=null;
  if (element != null && element instanceof INode) {
    INode node=(INode)element;
    ComponentProperties props=null;
    if (node.getComponentProperties() == null) {
      props=ComponentsUtils.getComponentProperties(node.getComponent().getName());
    }
 else {
      props=node.getComponentProperties();
    }
    if (props != null) {
      Form form=props.getForm(EComponentCategory.ADVANCED.equals(sectionCategory) ? IComponentConstants.FORM_ADVANCED : IComponentConstants.FORM_MAIN);
      dynamicComposite=new DynamicComposite(composite,SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_FOCUS,sectionCategory,element,isCompactView,composite.getBackground(),form);
      List<ElementParameter> elementParameters=(List<ElementParameter>)node.getElementParameters();
      for (      ElementParameter parameter : elementParameters) {
        if (parameter instanceof GenericElementParameter) {
          GenericElementParameter genericElementParameter=(GenericElementParameter)parameter;
          genericElementParameter.callBefore();
          genericElementParameter.addPropertyChangeListener(dynamicComposite);
        }
      }
    }
  }
  return dynamicComposite;
}

Fixed version (ground truth):
@Override public Composite creatDynamicComposite(Composite composite,Element element,EComponentCategory sectionCategory,boolean isCompactView){
  DynamicComposite dynamicComposite=null;
  if (element != null && element instanceof INode) {
    INode node=(INode)element;
    ComponentProperties props=null;
    if (node.getComponentProperties() == null) {
      props=ComponentsUtils.getComponentProperties(node.getComponent().getName());
    }
 else {
      props=node.getComponentProperties();
    }
    if (props != null) {
      Form form=props.getForm(EComponentCategory.ADVANCED.equals(sectionCategory) ? IComponentConstants.FORM_ADVANCED : IComponentConstants.FORM_MAIN);
      dynamicComposite=new DynamicComposite(composite,SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_FOCUS,sectionCategory,element,isCompactView,composite.getBackground(),form);
      List<ElementParameter> elementParameters=(List<ElementParameter>)node.getElementParameters();
      for (      ElementParameter parameter : elementParameters) {
        if (parameter instanceof GenericElementParameter) {
          GenericElementParameter genericElementParameter=(GenericElementParameter)parameter;
          genericElementParameter.addPropertyChangeListener(dynamicComposite);
        }
      }
    }
  }
  return dynamicComposite;
}