Bug 158494 [Regression] Exception is thrown out when apply a pre-defined style to an item
Exception is thrown out when apply a pre-defined style to an item Steps to reproduce: 1. New a pre-defined style "Data": edit font color as red 2. Drag data from palette to lay out 3. Choose the data item and go to Properties editor -> General -> Style Expected result: Style Data should not show up Actual result: Choose Style Data and exception is thrown out Error log: A BIRT exception occurred. Plug-in Provider:Eclipse.org Plug-in Name:BIRT Model Plug-in ID:org.eclipse.birt.report.model Version:2.1.1.v20060922-0630 Error Code:Error.StyleException.NOT_FOUND Error Message:The style "Data" used by report.Body[0] is not found.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
else if ( MasterPageHandle.ORIENTATION_PROP.equals( property ) )
		{
			unitKey = DesignChoiceConstants.CHOICE_PAGE_ORIENTATION;
		}
		else if ( MasterPageHandle.TYPE_PROP.equals( property ) )
		{
			unitKey = DesignChoiceConstants.CHOICE_PAGE_SIZE;
		}
		else if ( GroupHandle.INTERVAL_PROP.equals( property ) )
		{
			unitKey = DesignChoiceConstants.CHOICE_INTERVAL;
		}
		else if ( StyleHandle.PAGE_BREAK_BEFORE_PROP.equals( property ) )
		{
			unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_BEFORE;
		}
		else if ( StyleHandle.PAGE_BREAK_AFTER_PROP.equals( property ) )
		{
			unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_AFTER;
		}
		else if ( StyleHandle.PAGE_BREAK_INSIDE_PROP.equals( property ) )
		{
			unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_INSIDE;
		}
		return DesignEngine.getMetaDataDictionary( ).getChoiceSet( unitKey );
	}
	/**
	 * Gets the collection that given property value can selected from them.
	 * 
	 * @param elementName