style = new ComboBoxFieldEditor(StyleHandle.FONT_STYLE_PROP, Messages .getString(((StyleHandle) model).getPropertyHandle( StyleHandle.FONT_STYLE_PROP).getDefn() .getDisplayNameID()), getChoiceArray(DesignChoiceConstants.CHOICE_FONT_STYLE), getFieldEditorParent());
color = new ColorFieldEditor( StyleHandle.COLOR_PROP, Messages.getString( ( (StyleHandle) model ).getPropertyHandle( StyleHandle.COLOR_PROP ) .getDefn( ) .getDisplayNameID( ) ), getFieldEditorParent( ) );
	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());		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("FontPreferencePage.label.fontDecoration"), //$NON-NLS-1$				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("FontPreferencePage.text.Preview")); //$NON-NLS-1$		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("FontPreferencePage.text.PreviewContent")); //$NON-NLS-1$		sample.setLayoutData(new GridData(GridData.FILL_BOTH));		UIUtil.bindHelp( getFieldEditorParent( ).getParent( ),IHelpContextIds.STYLE_BUILDER_FONT_ID ); 	}