Program: 124287
Project: 124287
Buggy source:
private static void statsAndLogsParametersFilePart(IProcess process){
  ElementParameter param;
  IPreferenceStore preferenceStore=DesignerPlugin.getDefault().getPreferenceStore();
  List<IElementParameter> paramList=(List<IElementParameter>)process.getElementParameters();
  String languagePrefix=LanguageManager.getCurrentLanguage().toString() + "String_Node_Str";
  param=new ElementParameter(process);
  param.setName(EParameterName.ON_FILES_FLAG.getName());
  param.setValue(preferenceStore.getBoolean(languagePrefix + EParameterName.ON_FILES_FLAG.getName()));
  param.setDisplayName(EParameterName.ON_FILES_FLAG.getDisplayName());
  param.setFieldType(EParameterFieldType.CHECK);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setNumRow(10);
  param.setShowIf("String_Node_Str");
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILE_PATH.getName());
  param.setValue(addQuotes(replaceSlash(preferenceStore.getString(languagePrefix + EParameterName.FILE_PATH.getName()))));
  param.setDisplayName(EParameterName.FILE_PATH.getDisplayName());
  param.setFieldType(EParameterFieldType.DIRECTORY);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setNumRow(11);
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILENAME_STATS.getName());
  param.setValue(addQuotes(preferenceStore.getString(languagePrefix + EParameterName.FILENAME_STATS.getName())));
  param.setDisplayName(EParameterName.FILENAME_STATS.getDisplayName());
  param.setFieldType(EParameterFieldType.TEXT);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setRequired(true);
  param.setNumRow(12);
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILENAME_LOGS.getName());
  param.setValue(addQuotes(preferenceStore.getString(languagePrefix + EParameterName.FILENAME_LOGS.getName())));
  param.setDisplayName(EParameterName.FILENAME_LOGS.getDisplayName());
  param.setFieldType(EParameterFieldType.TEXT);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setNumRow(13);
  param.setRequired(true);
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILENAME_METTER.getName());
  param.setValue(addQuotes(preferenceStore.getString(languagePrefix + EParameterName.FILENAME_METTER.getName())));
  param.setDisplayName(EParameterName.FILENAME_METTER.getDisplayName());
  param.setFieldType(EParameterFieldType.TEXT);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setRequired(true);
  param.setNumRow(14);
  paramList.add(param);
  ElementParameter encodingParam=new ElementParameter(process);
  encodingParam.setName(EParameterName.ENCODING.getName());
  encodingParam.setDisplayName(EParameterName.ENCODING.getDisplayName());
  encodingParam.setCategory(EComponentCategory.STATSANDLOGS);
  encodingParam.setFieldType(EParameterFieldType.ENCODING_TYPE);
  encodingParam.setShowIf("String_Node_Str");
  encodingParam.setValue(ENCODING_TYPE_ISO_8859_15);
  encodingParam.setNumRow(15);
  paramList.add(encodingParam);
  ElementParameter childPram=new ElementParameter(process);
  childPram.setName(EParameterName.ENCODING_TYPE.getName());
  childPram.setDisplayName(EParameterName.ENCODING_TYPE.getDisplayName());
  childPram.setFieldType(EParameterFieldType.TECHNICAL);
  childPram.setCategory(EComponentCategory.STATSANDLOGS);
  childPram.setListItemsDisplayName(new String[]{ENCODING_TYPE_ISO_8859_15,ENCODING_TYPE_UTF_8,ENCODING_TYPE_CUSTOM});
  childPram.setListItemsDisplayCodeName(new String[]{ENCODING_TYPE_ISO_8859_15,ENCODING_TYPE_UTF_8,ENCODING_TYPE_CUSTOM});
  childPram.setListItemsValue(new String[]{ENCODING_TYPE_ISO_8859_15,ENCODING_TYPE_UTF_8,ENCODING_TYPE_CUSTOM});
  childPram.setValue(ENCODING_TYPE_ISO_8859_15);
  childPram.setNumRow(15);
  childPram.setShowIf("String_Node_Str");
  childPram.setParentParameter(encodingParam);
}

Fixed version (ground truth):
private static List<IElementParameter> statsAndLogsParametersFilePart(IProcess process){
  ElementParameter param;
  IPreferenceStore preferenceStore=DesignerPlugin.getDefault().getPreferenceStore();
  List<IElementParameter> paramList=new ArrayList<IElementParameter>();
  String languagePrefix=LanguageManager.getCurrentLanguage().toString() + "String_Node_Str";
  param=new ElementParameter(process);
  param.setName(EParameterName.ON_FILES_FLAG.getName());
  param.setValue(preferenceStore.getBoolean(languagePrefix + EParameterName.ON_FILES_FLAG.getName()));
  param.setDisplayName(EParameterName.ON_FILES_FLAG.getDisplayName());
  param.setFieldType(EParameterFieldType.CHECK);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setNumRow(10);
  param.setShowIf("String_Node_Str");
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILE_PATH.getName());
  param.setValue(addQuotes(replaceSlash(preferenceStore.getString(languagePrefix + EParameterName.FILE_PATH.getName()))));
  param.setDisplayName(EParameterName.FILE_PATH.getDisplayName());
  param.setFieldType(EParameterFieldType.DIRECTORY);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setNumRow(11);
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILENAME_STATS.getName());
  param.setValue(addQuotes(preferenceStore.getString(languagePrefix + EParameterName.FILENAME_STATS.getName())));
  param.setDisplayName(EParameterName.FILENAME_STATS.getDisplayName());
  param.setFieldType(EParameterFieldType.TEXT);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setRequired(true);
  param.setNumRow(12);
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILENAME_LOGS.getName());
  param.setValue(addQuotes(preferenceStore.getString(languagePrefix + EParameterName.FILENAME_LOGS.getName())));
  param.setDisplayName(EParameterName.FILENAME_LOGS.getDisplayName());
  param.setFieldType(EParameterFieldType.TEXT);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setNumRow(13);
  param.setRequired(true);
  paramList.add(param);
  param=new ElementParameter(process);
  param.setName(EParameterName.FILENAME_METTER.getName());
  param.setValue(addQuotes(preferenceStore.getString(languagePrefix + EParameterName.FILENAME_METTER.getName())));
  param.setDisplayName(EParameterName.FILENAME_METTER.getDisplayName());
  param.setFieldType(EParameterFieldType.TEXT);
  param.setCategory(EComponentCategory.STATSANDLOGS);
  param.setShowIf("String_Node_Str");
  param.setRequired(true);
  param.setNumRow(14);
  paramList.add(param);
  ElementParameter encodingParam=new ElementParameter(process);
  encodingParam.setName(EParameterName.ENCODING.getName());
  encodingParam.setDisplayName(EParameterName.ENCODING.getDisplayName());
  encodingParam.setCategory(EComponentCategory.STATSANDLOGS);
  encodingParam.setFieldType(EParameterFieldType.ENCODING_TYPE);
  encodingParam.setShowIf("String_Node_Str");
  encodingParam.setValue(ENCODING_TYPE_ISO_8859_15);
  encodingParam.setNumRow(15);
  paramList.add(encodingParam);
  ElementParameter childPram=new ElementParameter(process);
  childPram.setName(EParameterName.ENCODING_TYPE.getName());
  childPram.setDisplayName(EParameterName.ENCODING_TYPE.getDisplayName());
  childPram.setFieldType(EParameterFieldType.TECHNICAL);
  childPram.setCategory(EComponentCategory.STATSANDLOGS);
  childPram.setListItemsDisplayName(new String[]{ENCODING_TYPE_ISO_8859_15,ENCODING_TYPE_UTF_8,ENCODING_TYPE_CUSTOM});
  childPram.setListItemsDisplayCodeName(new String[]{ENCODING_TYPE_ISO_8859_15,ENCODING_TYPE_UTF_8,ENCODING_TYPE_CUSTOM});
  childPram.setListItemsValue(new String[]{ENCODING_TYPE_ISO_8859_15,ENCODING_TYPE_UTF_8,ENCODING_TYPE_CUSTOM});
  childPram.setValue(ENCODING_TYPE_ISO_8859_15);
  childPram.setNumRow(15);
  childPram.setShowIf("String_Node_Str");
  childPram.setParentParameter(encodingParam);
  return paramList;
}