Bug 165624 Provides UI supports for Highlight rule refer to Style element
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/widget/HighlightPropertyDescriptor.java
package org.eclipse.birt.report.designer.internal.ui.views.attributes.widget;
import org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.HighlightDescriptorProvider;
import org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.IDescriptorProvider;
import org.eclipse.birt.report.designer.util.ColorManager;
public class HighlightPropertyDescriptor extends PreviewPropertyDescriptor
{
	public HighlightPropertyDescriptor( boolean formStyle )
	{
		super( formStyle );
	}
	protected HighlightDescriptorProvider provider;
	public void setDescriptorProvider( IDescriptorProvider provider )
	{
		super.setDescriptorProvider( provider );
		if ( provider instanceof HighlightDescriptorProvider )
			this.provider = (HighlightDescriptorProvider) provider;
	}
	protected void updatePreview( Object handle )
	{
		if ( handle != null )
		{
			String familyValue = provider.getFontFamily( handle );
			int sizeValue = provider.getFontSize( handle );