handle.getFontFamilyHandle( ) .setStringValue( DEUtil.resolveNull( familyValue ) ); handle.getFontSize( ) .setStringValue( DEUtil.resolveNull( sizeValue ) ); if ( color.getRGB( ) != null )
if ( !stylesChooser.getText( ).equals( NONE_DISPLAY_TEXT ) )
	protected void okPressed( )	{		try		{			String familyValue = getRawFontFamily( );			String sizeValue = getRawFontSize( );			int colorValue = DEUtil.getRGBInt( color.getRGB( ) );			int backColorValue = DEUtil.getRGBInt( backColor.getRGB( ) );			String italicValue = italic.getSelection( ) ? DesignChoiceConstants.FONT_STYLE_ITALIC					: DesignChoiceConstants.FONT_STYLE_NORMAL;			String weightValue = bold.getSelection( ) ? DesignChoiceConstants.FONT_WEIGHT_BOLD					: DesignChoiceConstants.FONT_WEIGHT_NORMAL;			String underlineValue = underline.getSelection( ) ? DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE					: DesignChoiceConstants.TEXT_UNDERLINE_NONE;			String lingthroughValue = linethrough.getSelection( ) ? DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH					: DesignChoiceConstants.TEXT_LINE_THROUGH_NONE;			// provider.setTestExpression( DEUtil.resolveNull(			// expression.getText( ) ) );			if ( handle == null )			{				HighlightRule rule = StructureFactory.createHighlightRule( );				rule.setProperty( HighlightRule.OPERATOR_MEMBER,						DEUtil.resolveNull( getValueForOperator( operator.getText( ) ) ) );				rule.setProperty( HighlightRule.VALUE1_MEMBER,						DEUtil.resolveNull( value1.getText( ) ) );				rule.setProperty( HighlightRule.VALUE2_MEMBER,						DEUtil.resolveNull( value2.getText( ) ) );				/**				 * Sets our necessary style properties.				 */				if ( color.getRGB( ) != null )				{					rule.setProperty( HighlightRule.COLOR_MEMBER,							new Integer( colorValue ) );				}				if ( backColor.getRGB( ) != null )				{					rule.setProperty( HighlightRule.BACKGROUND_COLOR_MEMBER,							new Integer( backColorValue ) );				}				if ( familyValue != null )				{					rule.setProperty( HighlightRule.FONT_FAMILY_MEMBER,							familyValue );				}				if ( sizeValue != null )				{					rule.setProperty( HighlightRule.FONT_SIZE_MEMBER, sizeValue );				}				if ( isItalicChanged )				{					rule.setProperty( HighlightRule.FONT_STYLE_MEMBER,							italicValue );				}				if ( isBoldChanged )				{					rule.setProperty( HighlightRule.FONT_WEIGHT_MEMBER,							weightValue );				}				if ( isLinethroughChanged )				{					rule.setProperty( HighlightRule.TEXT_LINE_THROUGH_MEMBER,							lingthroughValue );				}				if ( isUnderlineChanged )				{					rule.setProperty( HighlightRule.TEXT_UNDERLINE_MEMBER,							underlineValue );				}				// set test expression into highlight rule.				rule.setTestExpression( DEUtil.resolveNull( expression.getText( ) ) );				handle = provider.doAddItem( rule, handleCount );			}			else			{				handle.setOperator( DEUtil.resolveNull( getValueForOperator( operator.getText( ) ) ) );				handle.setValue1( DEUtil.resolveNull( value1.getText( ) ) );				if ( handle.getOperator( )						.equals( DesignChoiceConstants.MAP_OPERATOR_BETWEEN )						|| handle.getOperator( )								.equals( DesignChoiceConstants.MAP_OPERATOR_NOT_BETWEEN ) )				{					handle.setValue2( DEUtil.resolveNull( value2.getText( ) ) );				}				handle.getFontFamilyHandle( )						.setStringValue( DEUtil.resolveNull( familyValue ) );				handle.getFontSize( )						.setStringValue( DEUtil.resolveNull( sizeValue ) );				if ( color.getRGB( ) != null )				{					handle.getColor( ).setRGB( colorValue );				}				else				{					handle.getColor( ).setValue( null );				}				if ( backColor.getRGB( ) != null )				{					handle.getBackgroundColor( ).setRGB( backColorValue );				}				else				{					handle.getBackgroundColor( ).setValue( null );				}				if ( isItalicChanged )				{					handle.setFontStyle( italicValue );				}				if ( isBoldChanged )				{					handle.setFontWeight( weightValue );				}				if ( isUnderlineChanged )				{					handle.setTextUnderline( underlineValue );				}				if ( isLinethroughChanged )				{					handle.setTextLineThrough( lingthroughValue );				}				// set test expression into highlight rule.				handle.setTestExpression( DEUtil.resolveNull( expression.getText( ) ) );			}		}		catch ( Exception e )		{			WidgetUtil.processError( getShell( ), e );		}		super.okPressed( );	}