Program: 76359
Project: 76359
Buggy source:
protected void createFieldEditors(){
  super.createFieldEditors();
  name=new EditableComboFieldEditor(StyleHandle.FONT_FAMILY_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_FAMILY_PROP).getDefn().getDisplayNameID()),getFontChoiceArray(),getFieldEditorParent()){
    protected void setPropValue(    String newValue){
      if (UIUtil.needAddQuote(ReportDesignConstants.STYLE_ELEMENT,StyleHandle.FONT_FAMILY_PROP,newValue)) {
        super.setPropValue(DEUtil.AddQuote(newValue));
      }
 else {
        super.setPropValue(newValue);
      }
    }
    protected void updateComboForValue(    String value){
      super.updateComboForValue(DEUtil.RemoveQuote(value));
    }
  }
;
  color=new ColorFieldEditor(StyleHandle.COLOR_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.COLOR_PROP).getDefn().getDisplayNameID()),getFieldEditorParent());
  size=new ComboBoxMeasureFieldEditor(StyleHandle.FONT_SIZE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_SIZE_PROP).getDefn().getDisplayNameID()),getChoiceArray(DesignChoiceConstants.CHOICE_FONT_SIZE),getChoiceArray(DesignChoiceConstants.CHOICE_UNITS),getFieldEditorParent());
  size.setDefaultUnit(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_SIZE_PROP).getDefaultUnit());
  style=new ComboBoxFieldEditor(StyleHandle.FONT_STYLE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_STYLE_PROP).getDefn().getDisplayNameID()),getChoiceArray(DesignChoiceConstants.CHOICE_FONT_STYLE),getFieldEditorParent());
  weight=new ComboBoxFieldEditor(StyleHandle.FONT_WEIGHT_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_WEIGHT_PROP).getDefn().getDisplayNameID()),getChoiceArray(DesignChoiceConstants.CHOICE_FONT_WEIGHT),getFieldEditorParent());
  docoration=new DecorationFieldEditor(StyleHandle.TEXT_UNDERLINE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.TEXT_UNDERLINE_PROP).getDefn().getDisplayNameID()),StyleHandle.TEXT_OVERLINE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.TEXT_OVERLINE_PROP).getDefn().getDisplayNameID()),StyleHandle.TEXT_LINE_THROUGH_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.TEXT_LINE_THROUGH_PROP).getDefn().getDisplayNameID()),Messages.getString("String_Node_Str"),getFieldEditorParent());
  addField(name);
  addField(color);
  addField(size);
  addField(style);
  addField(weight);
  addField(docoration);
  addField(new SeparatorFieldEditor(getFieldEditorParent(),false));
  Group group=new Group(getFieldEditorParent(),SWT.SHADOW_OUT);
  group.setText(Messages.getString("String_Node_Str"));
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.widthHint=400;
  gd.heightHint=100;
  gd.horizontalSpan=4;
  group.setLayoutData(gd);
  group.setLayout(new GridLayout());
  sample=new PreviewLabel(group,SWT.NONE);
  sample.setText(Messages.getString("String_Node_Str"));
  sample.setLayoutData(new GridData(GridData.FILL_BOTH));
  UIUtil.bindHelp(getFieldEditorParent().getParent(),IHelpContextIds.STYLE_BUILDER_FONT_ID);
}

Fixed version (ground truth):
protected void createFieldEditors(){
  super.createFieldEditors();
  name=new EditableComboFieldEditor(StyleHandle.FONT_FAMILY_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_FAMILY_PROP).getDefn().getDisplayNameID()),getFontChoiceArray(),getFieldEditorParent()){
    protected void setPropValue(    String newValue){
      super.setPropValue(newValue);
    }
    protected void updateComboForValue(    String value){
      super.updateComboForValue(DEUtil.RemoveQuote(value));
    }
  }
;
  color=new ColorFieldEditor(StyleHandle.COLOR_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.COLOR_PROP).getDefn().getDisplayNameID()),getFieldEditorParent());
  size=new ComboBoxMeasureFieldEditor(StyleHandle.FONT_SIZE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_SIZE_PROP).getDefn().getDisplayNameID()),getChoiceArray(DesignChoiceConstants.CHOICE_FONT_SIZE),getChoiceArray(DesignChoiceConstants.CHOICE_UNITS),getFieldEditorParent());
  size.setDefaultUnit(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_SIZE_PROP).getDefaultUnit());
  style=new ComboBoxFieldEditor(StyleHandle.FONT_STYLE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_STYLE_PROP).getDefn().getDisplayNameID()),getChoiceArray(DesignChoiceConstants.CHOICE_FONT_STYLE),getFieldEditorParent());
  weight=new ComboBoxFieldEditor(StyleHandle.FONT_WEIGHT_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.FONT_WEIGHT_PROP).getDefn().getDisplayNameID()),getChoiceArray(DesignChoiceConstants.CHOICE_FONT_WEIGHT),getFieldEditorParent());
  docoration=new DecorationFieldEditor(StyleHandle.TEXT_UNDERLINE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.TEXT_UNDERLINE_PROP).getDefn().getDisplayNameID()),StyleHandle.TEXT_OVERLINE_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.TEXT_OVERLINE_PROP).getDefn().getDisplayNameID()),StyleHandle.TEXT_LINE_THROUGH_PROP,Messages.getString(((StyleHandle)model).getPropertyHandle(StyleHandle.TEXT_LINE_THROUGH_PROP).getDefn().getDisplayNameID()),Messages.getString("String_Node_Str"),getFieldEditorParent());
  addField(name);
  addField(color);
  addField(size);
  addField(style);
  addField(weight);
  addField(docoration);
  addField(new SeparatorFieldEditor(getFieldEditorParent(),false));
  Group group=new Group(getFieldEditorParent(),SWT.SHADOW_OUT);
  group.setText(Messages.getString("String_Node_Str"));
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.widthHint=400;
  gd.heightHint=100;
  gd.horizontalSpan=4;
  group.setLayoutData(gd);
  group.setLayout(new GridLayout());
  sample=new PreviewLabel(group,SWT.NONE);
  sample.setText(Messages.getString("String_Node_Str"));
  sample.setLayoutData(new GridData(GridData.FILL_BOTH));
  UIUtil.bindHelp(getFieldEditorParent().getParent(),IHelpContextIds.STYLE_BUILDER_FONT_ID);
}